pub enum Unit {
VariableDecl(VariableDecl),
ConstantDecl(ConstantDecl),
RecursiveDecl(RecursiveDecl),
OperatorDef(OperatorDef),
FunctionDef(FunctionDef),
ModuleDef(ModuleDef),
Instance(Instance),
Assumption(Assumption),
Theorem(Theorem),
UseOrHide(UseOrHide),
Module(Module),
Error(SyntaxNode),
}Expand description
A module-level unit.
Variants§
VariableDecl(VariableDecl)
VARIABLE ...
ConstantDecl(ConstantDecl)
CONSTANT ...
RecursiveDecl(RecursiveDecl)
RECURSIVE ...
OperatorDef(OperatorDef)
An operator definition.
FunctionDef(FunctionDef)
A function definition.
ModuleDef(ModuleDef)
A module definition (I == INSTANCE M).
Instance(Instance)
INSTANCE M.
Assumption(Assumption)
An assumption.
Theorem(Theorem)
A theorem.
UseOrHide(UseOrHide)
USE/HIDE.
Module(Module)
A nested module.
Error(SyntaxNode)
Tokens skipped after a syntax error.
Trait Implementations§
impl Eq for Unit
impl StructuralPartialEq for Unit
Auto Trait Implementations§
impl !RefUnwindSafe for Unit
impl !Send for Unit
impl !Sync for Unit
impl !UnwindSafe for Unit
impl Forget for Unit
impl Freeze for Unit
impl Move for Unit
impl Unpin for Unit
impl UnsafeUnpin for Unit
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