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
impl<Ctxt, T> DepNodeParams<Ctxt> for T where
Ctxt: DepContext,
T: for<'a> HashStable<StableHashingContext<'a>> + Debug,
impl<Ctxt, T> DepNodeParams<Ctxt> for T where
Ctxt: DepContext,
T: for<'a> HashStable<StableHashingContext<'a>> + Debug,
This method turns the parameters of a DepNodeConstructor into an opaque Fingerprint to be used in DepNode. Not all DepNodeParams support being turned into a Fingerprint (they don’t need to if the corresponding DepNode is anonymous). Read more
This method tries to recover the query key from the given DepNode,
something which is needed when forcing DepNodes during red-green
evaluation. The query system will only call this method if
fingerprint_style() is not FingerprintStyle::Opaque.
It is always valid to return None here, in which case incremental
compilation will treat the query as having changed instead of forcing it. 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.