Enum cretonne_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
StackOverflow
The current stack space was exhausted.
On some platforms, a stack overflow may also be indicated by a segmentation fault from the stack guard page.
HeapOutOfBounds
A 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.
OutOfBounds
Other bounds checking error.
IndirectCallToNull
Indirect call to a null table entry.
BadSignature
Signature mismatch on indirect call.
IntegerOverflow
An integer arithmetic operation caused an overflow.
IntegerDivisionByZero
An integer division by zero.
BadConversionToInteger
Failed float-to-int conversion.
Interrupt
Execution 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 TrapCode
fn clone(&self) -> TrapCode
[src]
fn clone(&self) -> TrapCode
Returns 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 TrapCode
impl PartialEq for TrapCode
[src]
impl PartialEq for TrapCode
fn eq(&self, other: &TrapCode) -> bool
[src]
fn eq(&self, other: &TrapCode) -> bool
This 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) -> bool
This method tests for !=
.
impl Eq for TrapCode
[src]
impl Eq for TrapCode
impl Debug for TrapCode
[src]
impl Debug for TrapCode
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Hash for TrapCode
[src]
impl Hash for TrapCode
fn 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 TrapCode
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl FromStr for TrapCode
[src]
impl FromStr for TrapCode