[−][src]Enum minitt::syntax::Expression
Exp
in Mini-TT.
Expression language for Mini-TT.
Variants
Unit
One
Type
Void
Var(String)
Sum(Branch)
Function(Branch)
Pi(Pattern, Box<Self>, Box<Self>)
Sigma(Pattern, Box<Self>, Box<Self>)
Lambda(Pattern, Box<Self>)
First(Box<Self>)
Second(Box<Self>)
Application(Box<Self>, Box<Self>)
Pair(Box<Self>, Box<Self>)
Constructor(String, Box<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]
fn eq(&self, other: &Expression) -> bool
[src]
fn ne(&self, other: &Expression) -> bool
[src]
impl Clone for Expression
[src]
fn clone(&self) -> Expression
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialOrd<Expression> for Expression
[src]
fn partial_cmp(&self, other: &Expression) -> Option<Ordering>
[src]
fn lt(&self, other: &Expression) -> bool
[src]
fn le(&self, other: &Expression) -> bool
[src]
fn gt(&self, other: &Expression) -> bool
[src]
fn ge(&self, other: &Expression) -> bool
[src]
impl Eq for Expression
[src]
impl Ord for Expression
[src]
fn cmp(&self, other: &Expression) -> Ordering
[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 Display for Expression
[src]
impl Debug for Expression
[src]
Auto Trait Implementations
impl Send for Expression
impl Sync for Expression
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,