Enum cranelift_codegen::ir::TrapCode [−][src]
pub enum TrapCode {
StackOverflow,
HeapOutOfBounds,
OutOfBounds,
IndirectCallToNull,
BadSignature,
IntegerOverflow,
IntegerDivisionByZero,
BadConversionToInteger,
Interrupt,
User(u16),
}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.
Some out-of-bounds heap accesses are detected by a segmentation fault on the heap guard pages.
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.
InterruptExecution has potentially run too long and may be interrupted. This trap is resumable.
User(u16)A user-defined trap code.
Trait Implementations
impl Clone for TrapCode[src]
impl Clone for TrapCodefn clone(&self) -> TrapCode[src]
fn clone(&self) -> TrapCodeReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Copy for TrapCode[src]
impl Copy for TrapCodeimpl PartialEq for TrapCode[src]
impl PartialEq for TrapCodefn eq(&self, other: &TrapCode) -> bool[src]
fn eq(&self, other: &TrapCode) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &TrapCode) -> bool[src]
fn ne(&self, other: &TrapCode) -> boolThis method tests for !=.
impl Eq for TrapCode[src]
impl Eq for TrapCodeimpl Debug for TrapCode[src]
impl Debug for TrapCodefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Hash for TrapCode[src]
impl Hash for TrapCodefn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl Display for TrapCode[src]
impl Display for TrapCodefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl FromStr for TrapCode[src]
impl FromStr for TrapCode