Enum chalk_ir::LifetimeData [−][src]
pub enum LifetimeData<I: Interner> { BoundVar(BoundVar), InferenceVar(InferenceVar), Placeholder(PlaceholderIndex), Static, Empty(UniverseIndex), Erased, Phantom(Void, PhantomData<I>), }
Expand description
Lifetime data, including what kind of lifetime it is and what it points to.
Variants
BoundVar(BoundVar)
See TyKind::BoundVar.
InferenceVar(InferenceVar)
Lifetime whose value is being inferred.
Placeholder(PlaceholderIndex)
Lifetime on some yet-unknown placeholder.
Static lifetime
Empty(UniverseIndex)
An empty lifetime: a lifetime shorter than any other lifetime in a universe with a lesser or equal index. The universe only non-zero in lexical region resolve in rustc, so chalk shouldn’t ever see a non-zero index.
An erased lifetime, used by rustc to improve caching when we doesn’t care about lifetimes
Phantom(Void, PhantomData<I>)
Lifetime on phantom data.
Implementations
Trait Implementations
Cast a value to type T
.
type Interner = I
type Interner = I
The interner associated with the type.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl<I> RefUnwindSafe for LifetimeData<I> where
I: RefUnwindSafe,
impl<I> Send for LifetimeData<I> where
I: Send,
impl<I> Sync for LifetimeData<I> where
I: Sync,
impl<I> Unpin for LifetimeData<I> where
I: Unpin,
impl<I> UnwindSafe for LifetimeData<I> where
I: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Cast a value to type U
using CastTo
.