[−][src]Enum cranelift_codegen::ir::TrapCode
A trap code describing the reason for a trap.
All trap instructions have an explicit trap code.
Variants
StackOverflowThe current stack space was exhausted.
On some platforms, a stack overflow may also be indicated by a segmentation fault from the stack guard page.
HeapOutOfBoundsA heap_addr instruction detected an out-of-bounds error.
Note that not all out-of-bounds heap accesses are reported this way; some are detected by a segmentation fault on the heap unmapped or offset-guard pages.
TableOutOfBoundsA table_addr instruction detected an out-of-bounds error.
OutOfBoundsOther bounds checking error.
IndirectCallToNullIndirect call to a null table entry.
BadSignatureSignature mismatch on indirect call.
IntegerOverflowAn integer arithmetic operation caused an overflow.
IntegerDivisionByZeroAn integer division by zero.
BadConversionToIntegerFailed float-to-int conversion.
UnreachableCodeReachedCode that was supposed to have been unreachable was reached.
InterruptExecution has potentially run too long and may be interrupted. This trap is resumable.
User(u16)A user-defined trap code.
Trait Implementations
impl Display for TrapCode[src]
impl Debug for TrapCode[src]
impl PartialEq<TrapCode> for TrapCode[src]
impl Eq for TrapCode[src]
impl Hash for TrapCode[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher]. Read more
impl Copy for TrapCode[src]
impl FromStr for TrapCode[src]
type Err = ()
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>[src]
impl Clone for TrapCode[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T[src]
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto 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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,