pub enum AssertKind<O> {
BoundsCheck {
len: O,
index: O,
},
Overflow(BinOp, O, O),
OverflowNeg(O),
DivisionByZero(O),
RemainderByZero(O),
ResumedAfterReturn(CoroutineKind),
ResumedAfterPanic(CoroutineKind),
MisalignedPointerDereference {
required: O,
found: O,
},
}
Expand description
Information about an assertion failure.
Variants§
BoundsCheck
Overflow(BinOp, O, O)
OverflowNeg(O)
DivisionByZero(O)
RemainderByZero(O)
ResumedAfterReturn(CoroutineKind)
ResumedAfterPanic(CoroutineKind)
MisalignedPointerDereference
Auto Trait Implementations§
impl<O> Freeze for AssertKind<O>where
O: Freeze,
impl<O> RefUnwindSafe for AssertKind<O>where
O: RefUnwindSafe,
impl<O> Send for AssertKind<O>where
O: Send,
impl<O> Sync for AssertKind<O>where
O: Sync,
impl<O> Unpin for AssertKind<O>where
O: Unpin,
impl<O> UnwindSafe for AssertKind<O>where
O: UnwindSafe,
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