Enum chalk_ir::LifetimeData
source · pub enum LifetimeData<I: Interner> {
BoundVar(BoundVar),
InferenceVar(InferenceVar),
Placeholder(PlaceholderIndex),
Static,
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
Static lifetime
Erased
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§
source§impl<I: Interner> CastTo<LifetimeData<I>> for LifetimeData<I>
impl<I: Interner> CastTo<LifetimeData<I>> for LifetimeData<I>
source§fn cast_to(
self,
_interner: <LifetimeData<I> as HasInterner>::Interner
) -> LifetimeData<I>
fn cast_to( self, _interner: <LifetimeData<I> as HasInterner>::Interner ) -> LifetimeData<I>
Cast a value to type
T
.source§impl<I: Clone + Interner> Clone for LifetimeData<I>
impl<I: Clone + Interner> Clone for LifetimeData<I>
source§fn clone(&self) -> LifetimeData<I>
fn clone(&self) -> LifetimeData<I>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<I: Interner> Debug for LifetimeData<I>
impl<I: Interner> Debug for LifetimeData<I>
source§impl<I: Interner> HasInterner for LifetimeData<I>
impl<I: Interner> HasInterner for LifetimeData<I>
source§impl<I: Ord + Interner> Ord for LifetimeData<I>
impl<I: Ord + Interner> Ord for LifetimeData<I>
source§fn cmp(&self, other: &LifetimeData<I>) -> Ordering
fn cmp(&self, other: &LifetimeData<I>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<I: PartialEq + Interner> PartialEq<LifetimeData<I>> for LifetimeData<I>
impl<I: PartialEq + Interner> PartialEq<LifetimeData<I>> for LifetimeData<I>
source§fn eq(&self, other: &LifetimeData<I>) -> bool
fn eq(&self, other: &LifetimeData<I>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<I: PartialOrd + Interner> PartialOrd<LifetimeData<I>> for LifetimeData<I>
impl<I: PartialOrd + Interner> PartialOrd<LifetimeData<I>> for LifetimeData<I>
source§fn partial_cmp(&self, other: &LifetimeData<I>) -> Option<Ordering>
fn partial_cmp(&self, other: &LifetimeData<I>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more