[−]Enum cranelift::prelude::TrapCode
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.
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.
A table_addr
instruction detected an out-of-bounds error.
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.
Code that was supposed to have been unreachable was reached.
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
fn clone(&self) -> TrapCode
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for TrapCode
impl Debug for TrapCode
impl Display for TrapCode
impl Eq for TrapCode
impl FromStr for TrapCode
type Err = ()
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<TrapCode, <TrapCode as FromStr>::Err>
impl Hash for TrapCode
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
__H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<TrapCode> for TrapCode
impl StructuralEq for TrapCode
impl StructuralPartialEq for TrapCode
Auto Trait Implementations
impl RefUnwindSafe for TrapCode
impl Send for TrapCode
impl Sync for TrapCode
impl Unpin for TrapCode
impl UnwindSafe for TrapCode
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> 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<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,