[][src]Enum minitt::syntax::Expression

pub enum Expression {
    Unit,
    One,
    Type,
    Void,
    Var(String),
    Sum(Branch),
    Function(Branch),
    Pi(PatternBox<Self>, Box<Self>),
    Sigma(PatternBox<Self>, Box<Self>),
    Lambda(PatternBox<Self>),
    First(Box<Self>),
    Second(Box<Self>),
    Application(Box<Self>, Box<Self>),
    Pair(Box<Self>, Box<Self>),
    Constructor(StringBox<Self>),
    Declaration(Box<Declaration>, Box<Self>),
}

Exp in Mini-TT. Expression language for Mini-TT.

Variants

UnitOneTypeVoidVar(String)Sum(Branch)Function(Branch)Pi(PatternBox<Self>, Box<Self>)Sigma(PatternBox<Self>, Box<Self>)Lambda(PatternBox<Self>)First(Box<Self>)Second(Box<Self>)Application(Box<Self>, Box<Self>)Pair(Box<Self>, Box<Self>)Constructor(StringBox<Self>)Declaration(Box<Declaration>, Box<Self>)

Methods

impl Expression[src]

pub fn eval(self, context: Telescope) -> Value[src]

eval in Mini-TT.
Evaluate an Expression to a Value under a Telescope, panic if not well-typed.

Trait Implementations

impl PartialEq<Expression> for Expression[src]

impl Ord for Expression[src]

fn max(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl Clone for Expression[src]

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

Performs copy-assignment from source. Read more

impl Eq for Expression[src]

impl PartialOrd<Expression> for Expression[src]

impl Display for Expression[src]

impl Debug for Expression[src]

Auto Trait Implementations

impl Send for Expression

impl Sync for Expression

Blanket Implementations

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

impl<T> From for T[src]

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, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> Any for T where
    T: 'static + ?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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.