[][src]Enum chalk_ir::VariableKind

pub enum VariableKind<I: Interner> {
    Ty(TyKind),
    Lifetime,
    Const(Ty<I>),
}

The "kind" of variable. Type, lifetime or constant.

Variants

Ty(TyKind)
Lifetime
Const(Ty<I>)

Trait Implementations

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

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

impl<I: Interner> Copy for VariableKind<I> where
    I::InternedType: Copy
[src]

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

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

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

type Interner = I

The interner associated with the type.

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

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

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

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

impl<I: Interner> Zip<I> for VariableKind<I>[src]

Auto Trait Implementations

impl<I> RefUnwindSafe for VariableKind<I> where
    <I as Interner>::InternedType: RefUnwindSafe

impl<I> Send for VariableKind<I> where
    <I as Interner>::InternedType: Send

impl<I> Sync for VariableKind<I> where
    <I as Interner>::InternedType: Sync

impl<I> Unpin for VariableKind<I> where
    <I as Interner>::InternedType: Unpin

impl<I> UnwindSafe for VariableKind<I> where
    <I as Interner>::InternedType: 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, I> CouldMatch<T> for T where
    I: Interner,
    T: Zip<I> + HasInterner<Interner = I> + ?Sized
[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.