pub enum Decl {
Use(UseDecl),
Const(ConstDecl),
Var(VarDecl),
Type(TypeDecl),
Func(FuncDecl),
Init(InitDecl),
Action(ActionDecl),
Invariant(InvariantDecl),
Property(PropertyDecl),
Fairness(FairnessDecl),
}Expand description
A top-level declaration.
Variants§
Use(UseDecl)
use ModuleName
Const(ConstDecl)
const NAME: Type
Var(VarDecl)
var NAME: Type
Type(TypeDecl)
type NAME = Type
Func(FuncDecl)
func NAME(params) { expr }
Init(InitDecl)
init { ... }
Action(ActionDecl)
action NAME(...) { ... }
Invariant(InvariantDecl)
invariant NAME { ... }
Property(PropertyDecl)
property NAME { ... }
Fairness(FairnessDecl)
fairness { ... }
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Decl
impl RefUnwindSafe for Decl
impl Send for Decl
impl Sync for Decl
impl Unpin for Decl
impl UnwindSafe for Decl
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