pub struct InvariantDef {
pub name: String,
pub description: String,
pub critical: bool,
}Expand description
Definition of an invariant
Fields§
§name: StringInvariant name
description: StringHuman-readable description
critical: boolWhether this is critical (blocks promotion if violated)
Implementations§
Trait Implementations§
Source§impl Clone for InvariantDef
impl Clone for InvariantDef
Source§fn clone(&self) -> InvariantDef
fn clone(&self) -> InvariantDef
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 InvariantDef
impl RefUnwindSafe for InvariantDef
impl Send for InvariantDef
impl Sync for InvariantDef
impl Unpin for InvariantDef
impl UnsafeUnpin for InvariantDef
impl UnwindSafe for InvariantDef
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