pub enum Lean4Decl {
Def(Lean4Def),
Theorem(Lean4Theorem),
Axiom(Lean4Axiom),
Abbrev(Lean4Abbrev),
Structure(Lean4Structure),
Inductive(Lean4Inductive),
Instance(Lean4Instance),
Check(Lean4Expr),
Eval(Lean4Expr),
Raw(String),
Section(String, Vec<Lean4Decl>),
Namespace(String, Vec<Lean4Decl>),
}Expand description
Top-level Lean 4 declaration.
Variants§
Def(Lean4Def)
def definition
Theorem(Lean4Theorem)
theorem declaration
Axiom(Lean4Axiom)
axiom declaration
Abbrev(Lean4Abbrev)
abbrev declaration
Structure(Lean4Structure)
structure declaration
Inductive(Lean4Inductive)
inductive type
Instance(Lean4Instance)
instance declaration
Check(Lean4Expr)
#check command
Eval(Lean4Expr)
#eval command
Raw(String)
Raw source string (escape hatch)
Section(String, Vec<Lean4Decl>)
Section: section Name ... end Name
Namespace(String, Vec<Lean4Decl>)
Namespace: namespace Name ... end Name
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Lean4Decl
impl RefUnwindSafe for Lean4Decl
impl Send for Lean4Decl
impl Sync for Lean4Decl
impl Unpin for Lean4Decl
impl UnsafeUnpin for Lean4Decl
impl UnwindSafe for Lean4Decl
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