[][src]Enum chalk_ir::LifetimeData

pub enum LifetimeData<I: Interner> {
    BoundVar(BoundVar),
    InferenceVar(InferenceVar),
    Placeholder(PlaceholderIndex),
    Static,
    Phantom(VoidPhantomData<I>),
}

Lifetime data, including what kind of lifetime it is and what it points to.

Variants

BoundVar(BoundVar)

See TyData::BoundVar.

InferenceVar(InferenceVar)

Lifetime whose value is being inferred.

Placeholder(PlaceholderIndex)

Lifetime on some yet-unknown placeholder.

Static

Static lifetime

Phantom(VoidPhantomData<I>)

Lifetime on phantom data.

Implementations

impl<I: Interner> LifetimeData<I>[src]

pub fn intern(self, interner: &I) -> Lifetime<I>[src]

Wrap the lifetime data in a lifetime.

Trait Implementations

impl<I: Interner> CastTo<LifetimeData<I>> for LifetimeData<I>[src]

impl<I: Clone + Interner> Clone for LifetimeData<I>[src]

impl<I: Copy + Interner> Copy for LifetimeData<I>[src]

impl<I: Interner> Debug for LifetimeData<I>[src]

impl<I: Eq + Interner> Eq for LifetimeData<I>[src]

impl<I: Interner> HasInterner for LifetimeData<I>[src]

type Interner = I

The interner associated with the type.

impl<I: Hash + Interner> Hash for LifetimeData<I>[src]

impl<I: Ord + Interner> Ord for LifetimeData<I>[src]

impl<I: PartialEq + Interner> PartialEq<LifetimeData<I>> for LifetimeData<I>[src]

impl<I: PartialOrd + Interner> PartialOrd<LifetimeData<I>> for LifetimeData<I>[src]

impl<I: Interner> StructuralEq for LifetimeData<I>[src]

impl<I: Interner> StructuralPartialEq for LifetimeData<I>[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Cast for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.