#[repr(u8)]pub enum AssertKind {
Always = 0,
AlwaysOrUnreachable = 1,
Sometimes = 2,
Reachable = 3,
Unreachable = 4,
NumericAlways = 5,
NumericSometimes = 6,
BooleanSometimesAll = 7,
}Expand description
The kind of assertion being tracked.
Variants§
Always = 0
Invariant that must always hold when reached.
AlwaysOrUnreachable = 1
Invariant that must hold when reached, but need not be reached.
Sometimes = 2
Condition that should sometimes be true.
Reachable = 3
Code path that should be reached at least once.
Unreachable = 4
Code path that should never be reached.
NumericAlways = 5
Numeric invariant that must always hold (e.g., val > threshold).
NumericSometimes = 6
Numeric condition that should sometimes hold.
BooleanSometimesAll = 7
Compound boolean: all named bools should sometimes be true simultaneously.
Implementations§
Trait Implementations§
Source§impl Clone for AssertKind
impl Clone for AssertKind
Source§fn clone(&self) -> AssertKind
fn clone(&self) -> AssertKind
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 AssertKind
impl Debug for AssertKind
Source§impl PartialEq for AssertKind
impl PartialEq for AssertKind
impl Copy for AssertKind
impl Eq for AssertKind
impl StructuralPartialEq for AssertKind
Auto Trait Implementations§
impl Freeze for AssertKind
impl RefUnwindSafe for AssertKind
impl Send for AssertKind
impl Sync for AssertKind
impl Unpin for AssertKind
impl UnsafeUnpin for AssertKind
impl UnwindSafe for AssertKind
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