Enum trivial_kernel::context::store::ElementRef[][src]

pub enum ElementRef<'a, Ty> {
    Variable {
        ty: &'a Ty,
        var: &'a u16,
    },
    Term {
        ty: &'a Ty,
        id: &'a u32,
        args: &'a [PackedPtr],
    },
    Conv {
        e1: &'a PackedPtr,
        e2: &'a PackedPtr,
    },
}

Variants

Variable

Fields of Variable

ty: &'a Tyvar: &'a u16
Term

Fields of Term

ty: &'a Tyid: &'a u32args: &'a [PackedPtr]
Conv

Convertability proof

Fields of Conv

e1: &'a PackedPtre2: &'a PackedPtr

Implementations

impl<'a, Ty: Var> ElementRef<'a, Ty>[src]

pub fn to_display<'b, S: Store<Var = Ty>>(
    &'b self,
    store: &'b S
) -> DisplayElement<'a, 'b, Ty, S>
[src]

Trait Implementations

impl<'a, Ty: Debug> Debug for ElementRef<'a, Ty>[src]

impl<'a, Ty> TryFrom<ElementRef<'a, Ty>> for Term<'a, Ty>[src]

type Error = Kind

The type returned in the event of a conversion error.

impl<'a, Ty> TryFrom<ElementRef<'a, Ty>> for Conv[src]

type Error = Kind

The type returned in the event of a conversion error.

impl<'a, Ty: Copy> TryFrom<ElementRef<'a, Ty>> for Variable<Ty>[src]

type Error = Kind

The type returned in the event of a conversion error.

Auto Trait Implementations

impl<'a, Ty> RefUnwindSafe for ElementRef<'a, Ty> where
    Ty: RefUnwindSafe

impl<'a, Ty> Send for ElementRef<'a, Ty> where
    Ty: Sync

impl<'a, Ty> Sync for ElementRef<'a, Ty> where
    Ty: Sync

impl<'a, Ty> Unpin for ElementRef<'a, Ty>

impl<'a, Ty> UnwindSafe for ElementRef<'a, Ty> where
    Ty: RefUnwindSafe

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> From<T> for T[src]

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

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.