[−][src]Enum minitt::syntax::Value
Val
in Mini-TT, value term.
Variants
Lambda(Closure<Name>)
Unit
One
Type
Pi(Box<Value<Name>>, Closure<Name>)
Sigma(Box<Value<Name>>, Closure<Name>)
Pair(Box<Value<Name>>, Box<Value<Name>>)
Constructor(Name, Box<Value<Name>>)
Function(DeepClosure<Name>)
Sum(DeepClosure<Name>)
Neutral(Neutral<Name>)
Methods
impl<Name: DebuggableNameTrait> Value<Name>
[src]
pub fn first(self) -> Value<Name>
[src]
vfst
in Mini-TT.
Run .1
on a Pair.
pub fn second(self) -> Value<Name>
[src]
vsnd
in Mini-TT.
Run .2
on a Pair.
pub fn destruct(self) -> (Value<Name>, Value<Name>)
[src]
Combination of vsnd
and vfst
in Mini-TT.
Run .2
on a Pair.
pub fn apply(self, argument: Value<Name>) -> Value<Name>
[src]
app
in Mini-TT.
Trait Implementations
impl<Name: DebuggableNameTrait> ReadBack for Value<Name>
[src]
type NormalForm = NormalExpression<Name>
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<Name: Clone + NameTrait> Clone for Value<Name>
[src]
fn clone(&self) -> Value<Name>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<Name: Debug + NameTrait> Debug for Value<Name>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
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>,