Enum rustc_middle::mir::AssertKind [−][src]
pub enum AssertKind<O> {
BoundsCheck {
len: O,
index: O,
},
Overflow(BinOp, O, O),
OverflowNeg(O),
DivisionByZero(O),
RemainderByZero(O),
ResumedAfterReturn(GeneratorKind),
ResumedAfterPanic(GeneratorKind),
}Expand description
Information about an assertion failure.
Variants
Tuple Fields of Overflow
Tuple Fields of ResumedAfterReturn
Tuple Fields of ResumedAfterPanic
Implementations
Getting a description does not require O to be printable, and does not
require allocation.
The caller is expected to handle BoundsCheck separately.
Trait Implementations
impl<'__ctx, O> HashStable<StableHashingContext<'__ctx>> for AssertKind<O> where
O: HashStable<StableHashingContext<'__ctx>>,
impl<'__ctx, O> HashStable<StableHashingContext<'__ctx>> for AssertKind<O> where
O: HashStable<StableHashingContext<'__ctx>>,
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
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
Mutably borrows from an owned value. Read more
Layout
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.