pub struct InvariantDecl {
pub name: Ident,
pub body: Expr,
pub span: Span,
}Expand description
invariant NAME { expr }
Fields§
§name: Ident§body: Expr§span: SpanTrait 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 moreAuto Trait Implementations§
impl Freeze for InvariantDecl
impl RefUnwindSafe for InvariantDecl
impl Send for InvariantDecl
impl Sync for InvariantDecl
impl Unpin 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