Enum move_model::ast::ConditionKind
source · [−]pub enum ConditionKind {
Show 20 variants
LetPost(Symbol),
LetPre(Symbol),
Assert,
Assume,
Decreases,
AbortsIf,
AbortsWith,
SucceedsIf,
Modifies,
Emits,
Ensures,
Requires,
StructInvariant,
FunctionInvariant,
LoopInvariant,
GlobalInvariant(Vec<Symbol>),
GlobalInvariantUpdate(Vec<Symbol>),
SchemaInvariant,
Axiom(Vec<Symbol>),
Update,
}Expand description
Variants
LetPost(Symbol)
LetPre(Symbol)
Assert
Assume
Decreases
AbortsIf
AbortsWith
SucceedsIf
Modifies
Emits
Ensures
Requires
StructInvariant
FunctionInvariant
LoopInvariant
GlobalInvariant(Vec<Symbol>)
GlobalInvariantUpdate(Vec<Symbol>)
SchemaInvariant
Axiom(Vec<Symbol>)
Update
Implementations
sourceimpl ConditionKind
impl ConditionKind
sourcepub fn allows_old(&self) -> bool
pub fn allows_old(&self) -> bool
Returns true of this condition allows the old(..) expression.
sourcepub fn allowed_on_fun_decl(&self, _visibility: FunctionVisibility) -> bool
pub fn allowed_on_fun_decl(&self, _visibility: FunctionVisibility) -> bool
Returns true if this condition is allowed on a function declaration.
sourcepub fn allowed_on_fun_impl(&self) -> bool
pub fn allowed_on_fun_impl(&self) -> bool
Returns true if this condition is allowed in a function body.
sourcepub fn allowed_on_struct(&self) -> bool
pub fn allowed_on_struct(&self) -> bool
Returns true if this condition is allowed on a struct.
sourcepub fn allowed_on_module(&self) -> bool
pub fn allowed_on_module(&self) -> bool
Returns true if this condition is allowed on a module.
Trait Implementations
sourceimpl Clone for ConditionKind
impl Clone for ConditionKind
sourcefn clone(&self) -> ConditionKind
fn clone(&self) -> ConditionKind
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ConditionKind
impl Debug for ConditionKind
sourceimpl Display for ConditionKind
impl Display for ConditionKind
sourceimpl PartialEq<ConditionKind> for ConditionKind
impl PartialEq<ConditionKind> for ConditionKind
sourcefn eq(&self, other: &ConditionKind) -> bool
fn eq(&self, other: &ConditionKind) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
impl StructuralPartialEq for ConditionKind
Auto Trait Implementations
impl RefUnwindSafe for ConditionKind
impl Send for ConditionKind
impl Sync for ConditionKind
impl Unpin for ConditionKind
impl UnwindSafe for ConditionKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more