#[repr(u8)]pub enum ArchivedTrapCode {
Show 15 variants
StackOverflow = 0,
HeapAccessOutOfBounds = 1,
HeapMisaligned = 2,
TableAccessOutOfBounds = 3,
IndirectCallToNull = 4,
BadSignature = 5,
IntegerOverflow = 6,
IntegerDivisionByZero = 7,
BadConversionToInteger = 8,
UnreachableCodeReached = 9,
UnalignedAtomic = 10,
UncaughtException = 11,
UninitializedExnRef = 12,
YieldOutsideAsyncContext = 13,
HostInterrupt = 14,
}Expand description
An archived TrapCode
Variants§
StackOverflow = 0
The archived counterpart of TrapCode::StackOverflow
HeapAccessOutOfBounds = 1
The archived counterpart of TrapCode::HeapAccessOutOfBounds
HeapMisaligned = 2
The archived counterpart of TrapCode::HeapMisaligned
TableAccessOutOfBounds = 3
The archived counterpart of TrapCode::TableAccessOutOfBounds
IndirectCallToNull = 4
The archived counterpart of TrapCode::IndirectCallToNull
BadSignature = 5
The archived counterpart of TrapCode::BadSignature
IntegerOverflow = 6
The archived counterpart of TrapCode::IntegerOverflow
IntegerDivisionByZero = 7
The archived counterpart of TrapCode::IntegerDivisionByZero
BadConversionToInteger = 8
The archived counterpart of TrapCode::BadConversionToInteger
UnreachableCodeReached = 9
The archived counterpart of TrapCode::UnreachableCodeReached
UnalignedAtomic = 10
The archived counterpart of TrapCode::UnalignedAtomic
UncaughtException = 11
The archived counterpart of TrapCode::UncaughtException
UninitializedExnRef = 12
The archived counterpart of TrapCode::UninitializedExnRef
YieldOutsideAsyncContext = 13
The archived counterpart of TrapCode::YieldOutsideAsyncContext
HostInterrupt = 14
The archived counterpart of TrapCode::HostInterrupt
Trait Implementations§
Source§impl<__C: Fallible + ?Sized> CheckBytes<__C> for ArchivedTrapCodewhere
<__C as Fallible>::Error: Source,
impl<__C: Fallible + ?Sized> CheckBytes<__C> for ArchivedTrapCodewhere
<__C as Fallible>::Error: Source,
Source§impl Debug for ArchivedTrapCode
impl Debug for ArchivedTrapCode
Source§impl PartialEq<ArchivedTrapCode> for TrapCode
impl PartialEq<ArchivedTrapCode> for TrapCode
Source§impl PartialEq<TrapCode> for ArchivedTrapCode
impl PartialEq<TrapCode> for ArchivedTrapCode
impl Portable for ArchivedTrapCode
Auto Trait Implementations§
impl Freeze for ArchivedTrapCode
impl RefUnwindSafe for ArchivedTrapCode
impl Send for ArchivedTrapCode
impl Sync for ArchivedTrapCode
impl Unpin for ArchivedTrapCode
impl UnwindSafe for ArchivedTrapCode
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more