Enum cretonne::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

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.

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.

Other bounds checking error.

Indirect call to a null table entry.

Signature mismatch on indirect call.

An integer arithmetic operation caused an overflow.

An integer division by zero.

Failed float-to-int conversion.

Execution has potentially run too long and may be interrupted. This trap is resumable.

A user-defined trap code.

Trait Implementations

impl Clone for TrapCode
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for TrapCode
[src]

impl PartialEq for TrapCode
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for TrapCode
[src]

impl Debug for TrapCode
[src]

[src]

Formats the value using the given formatter. Read more

impl Hash for TrapCode
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Display for TrapCode
[src]

[src]

Formats the value using the given formatter. Read more

impl FromStr for TrapCode
[src]

The associated error which can be returned from parsing.

[src]

Parses a string s to return a value of this type. Read more

Auto Trait Implementations

impl Send for TrapCode

impl Sync for TrapCode