Enum rustc_middle::middle::resolve_lifetime::Set1 [−][src]
pub enum Set1<T> {
Empty,
One(T),
Many,
}Expand description
A set containing, at most, one known element.
If two distinct values are inserted into a set, then it
becomes Many, which can be used to detect ambiguities.
Variants
Implementations
Trait Implementations
impl<'__ctx, T> HashStable<StableHashingContext<'__ctx>> for Set1<T> where
T: HashStable<StableHashingContext<'__ctx>>,
impl<'__ctx, T> HashStable<StableHashingContext<'__ctx>> for Set1<T> where
T: HashStable<StableHashingContext<'__ctx>>,
Auto Trait Implementations
impl<T> RefUnwindSafe for Set1<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Set1<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.