[−][src]Enum rustc_middle::mir::AssertKind
Information about an assertion failure.
Variants
Overflow(BinOp, O, O)ResumedAfterReturn(GeneratorKind)ResumedAfterPanic(GeneratorKind)Implementations
impl<O> AssertKind<O>[src]
pub fn description(&self) -> &'static str[src]
Getting a description does not require O to be printable, and does not
require allocation.
The caller is expected to handle BoundsCheck separately.
pub(in mir) fn fmt_assert_args<W: Write>(
&self,
f: &mut W
) -> Result where
O: Debug, [src]
&self,
f: &mut W
) -> Result where
O: Debug,
Format the message arguments for the assert(cond, msg..) terminator in MIR printing.
Trait Implementations
impl<O: Clone> Clone for AssertKind<O>[src]
pub fn clone(&self) -> AssertKind<O>[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<O: Debug> Debug for AssertKind<O>[src]
impl<'tcx, O, __D: TyDecoder<'tcx>> Decodable<__D> for AssertKind<O> where
O: Decodable<__D>, [src]
O: Decodable<__D>,
impl<'tcx, O, __E: TyEncoder<'tcx>> Encodable<__E> for AssertKind<O> where
O: Encodable<__E>, [src]
O: Encodable<__E>,
impl<'__ctx, O> HashStable<StableHashingContext<'__ctx>> for AssertKind<O> where
O: HashStable<StableHashingContext<'__ctx>>, [src]
O: HashStable<StableHashingContext<'__ctx>>,
pub fn hash_stable(
&self,
__hcx: &mut StableHashingContext<'__ctx>,
__hasher: &mut StableHasher
)[src]
&self,
__hcx: &mut StableHashingContext<'__ctx>,
__hasher: &mut StableHasher
)
impl<O: PartialEq> PartialEq<AssertKind<O>> for AssertKind<O>[src]
pub fn eq(&self, other: &AssertKind<O>) -> bool[src]
pub fn ne(&self, other: &AssertKind<O>) -> bool[src]
impl<O> StructuralPartialEq for AssertKind<O>[src]
Auto Trait Implementations
impl<O> RefUnwindSafe for AssertKind<O> where
O: RefUnwindSafe,
O: RefUnwindSafe,
impl<O> Send for AssertKind<O> where
O: Send,
O: Send,
impl<O> Sync for AssertKind<O> where
O: Sync,
O: Sync,
impl<O> Unpin for AssertKind<O> where
O: Unpin,
O: Unpin,
impl<O> UnwindSafe for AssertKind<O> where
O: UnwindSafe,
O: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> MaybeResult<T> for T[src]
type Error = !
pub fn from(Result<T, <T as MaybeResult<T>>::Error>) -> T[src]
pub fn to_result(self) -> Result<T, <T as MaybeResult<T>>::Error>[src]
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.