[][src]Enum minitt::syntax::Value

pub enum Value {
    Lambda(Closure),
    Unit,
    One,
    Type,
    Pi(Box<Self>, Closure),
    Sigma(Box<Self>, Closure),
    Pair(Box<Self>, Box<Self>),
    Constructor(StringBox<Self>),
    Split(CaseTree),
    Sum(CaseTree),
    Neutral(Neutral),
}

Val in Mini-TT, value term.

Variants

Lambda(Closure)UnitOneTypePi(Box<Self>, Closure)Sigma(Box<Self>, Closure)Pair(Box<Self>, Box<Self>)Constructor(StringBox<Self>)Split(CaseTree)Sum(CaseTree)Neutral(Neutral)

Methods

impl Value[src]

pub fn first(self) -> Value[src]

vfst in Mini-TT.
Run .1 on a Pair.

pub fn second(self) -> Value[src]

vsnd in Mini-TT.
Run .2 on a Pair.

pub fn destruct(self) -> (Value, Value)[src]

Combination of vsnd and vfst in Mini-TT.
Run .2 on a Pair.

pub fn apply(self, argument: Value) -> Value[src]

app in Mini-TT.

Trait Implementations

impl ReadBack for Value[src]

type NormalForm = NormalExpression

Corresponding normal form type for the read-backable structures. This is needed because Rust does not support Higher-Kinded Types :( Read more

fn read_back(self, index: u32) -> Self::NormalForm[src]

rbV in Mini-TT.

fn eq_normal(self, index: u32, other: Self) -> Result<(), String>[src]

eqNf in Mini-TT. Whether two structures are equivalent up to normal form. Read more

impl Clone for Value[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Display for Value[src]

impl Debug for Value[src]

Auto Trait Implementations

impl !Send for Value

impl !Sync for Value

Blanket Implementations

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

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

type Owned = T

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

The type returned in the event of a conversion error.

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