pub enum Command {
Definition {
name: String,
ty: Option<Term>,
body: Term,
is_hint: bool,
},
Check(Term),
Eval(Term),
Inductive {
name: String,
params: Vec<(String, Term)>,
sort: Term,
constructors: Vec<(String, Term)>,
},
}Expand description
A command in the Vernacular language.
Variants§
Definition
Definition name : type := body.
If ty is None, the type is inferred from the body.
If is_hint is true, register as a hint for auto tactic.
Check(Term)
Check term.
Prints the type of the term.
Eval(Term)
Eval term.
Normalizes and prints the term.
Inductive
Inductive Name (params) := C1 : T1 | C2 : T2.
Defines an inductive type with its constructors. Supports optional type parameters for polymorphic inductives.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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