pub enum TermConstructorKind {
Variable,
UnitIntro,
PairIntro,
PairElimFst,
PairElimSnd,
Abstraction,
Application,
InjLeft,
InjRight,
Case,
Absurd,
LetPair,
}Expand description
The kind of a term constructor.
Variants§
Variable
Variable reference
UnitIntro
Unit value introduction
PairIntro
Pair introduction
PairElimFst
First projection
PairElimSnd
Second projection
Abstraction
Lambda abstraction
Application
Function application
InjLeft
Left injection (sum types)
InjRight
Right injection (sum types)
Case
Case analysis (sum types)
Absurd
Absurd elimination (empty type)
LetPair
Let binding for pairs
Trait Implementations§
Source§impl Clone for TermConstructorKind
impl Clone for TermConstructorKind
Source§fn clone(&self) -> TermConstructorKind
fn clone(&self) -> TermConstructorKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TermConstructorKind
impl Debug for TermConstructorKind
Source§impl PartialEq for TermConstructorKind
impl PartialEq for TermConstructorKind
impl Eq for TermConstructorKind
impl StructuralPartialEq for TermConstructorKind
Auto Trait Implementations§
impl Freeze for TermConstructorKind
impl RefUnwindSafe for TermConstructorKind
impl Send for TermConstructorKind
impl Sync for TermConstructorKind
impl Unpin for TermConstructorKind
impl UnwindSafe for TermConstructorKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more