pub enum AstNodeKind {
Var,
Lam,
Pi,
App,
Let,
NatLit,
StrLit,
Sort,
Hole,
DefDecl,
TheoremDecl,
AxiomDecl,
}Expand description
A tag identifying the kind of an AST node.
Variants§
Var
A variable or constant name.
Lam
A lambda expression.
Pi
A Pi / forall type.
App
An application.
Let
A let-expression.
NatLit
A natural-number literal.
StrLit
A string literal.
Sort
A sort (Prop/Type).
Hole
A hole _.
DefDecl
A def declaration.
TheoremDecl
A theorem declaration.
AxiomDecl
An axiom declaration.
Trait Implementations§
Source§impl Clone for AstNodeKind
impl Clone for AstNodeKind
Source§fn clone(&self) -> AstNodeKind
fn clone(&self) -> AstNodeKind
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 AstNodeKind
impl Debug for AstNodeKind
Source§impl Display for AstNodeKind
impl Display for AstNodeKind
Source§impl Hash for AstNodeKind
impl Hash for AstNodeKind
Source§impl PartialEq for AstNodeKind
impl PartialEq for AstNodeKind
impl Copy for AstNodeKind
impl Eq for AstNodeKind
impl StructuralPartialEq for AstNodeKind
Auto Trait Implementations§
impl Freeze for AstNodeKind
impl RefUnwindSafe for AstNodeKind
impl Send for AstNodeKind
impl Sync for AstNodeKind
impl Unpin for AstNodeKind
impl UnsafeUnpin for AstNodeKind
impl UnwindSafe for AstNodeKind
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