pub struct InvariantResult {
pub invariant: String,
pub passed: bool,
pub violation: Option<Violation>,
}Expand description
Result of checking an invariant
Fields§
§invariant: StringWhich invariant was checked
passed: boolWhether it passed
violation: Option<Violation>Violation details if failed
Implementations§
Trait Implementations§
Source§impl Clone for InvariantResult
impl Clone for InvariantResult
Source§fn clone(&self) -> InvariantResult
fn clone(&self) -> InvariantResult
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 InvariantResult
impl RefUnwindSafe for InvariantResult
impl Send for InvariantResult
impl Sync for InvariantResult
impl Unpin for InvariantResult
impl UnsafeUnpin for InvariantResult
impl UnwindSafe for InvariantResult
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