Enum chalk_ir::LifetimeData
source · pub enum LifetimeData<I: Interner> {
BoundVar(BoundVar),
InferenceVar(InferenceVar),
Placeholder(PlaceholderIndex),
Static,
Erased,
Phantom(Void, PhantomData<I>),
Error,
}
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.
Error
A lifetime that resulted from some error
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 for LifetimeData<I>
impl<I: PartialEq + Interner> PartialEq 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 for LifetimeData<I>
impl<I: PartialOrd + Interner> PartialOrd 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 moreimpl<I: Copy + Interner> Copy for LifetimeData<I>
impl<I: Eq + Interner> Eq for LifetimeData<I>
impl<I: Interner> StructuralPartialEq for LifetimeData<I>
Auto Trait Implementations§
impl<I> Freeze for LifetimeData<I>
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)