pub struct InvariantDecl {
pub span: Span,
pub name: Ident,
pub body: Expr,
}Expand description
invariant Name { expr } — top-level expression-bearing invariant
Fields§
§span: Span§name: Ident§body: ExprTrait Implementations§
Source§impl Clone for InvariantDecl
impl Clone for InvariantDecl
Source§fn clone(&self) -> InvariantDecl
fn clone(&self) -> InvariantDecl
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InvariantDecl
impl Debug for InvariantDecl
Auto Trait Implementations§
impl Freeze for InvariantDecl
impl RefUnwindSafe for InvariantDecl
impl Send for InvariantDecl
impl Sync for InvariantDecl
impl Unpin for InvariantDecl
impl UnsafeUnpin for InvariantDecl
impl UnwindSafe for InvariantDecl
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