pub enum RuntimeTrap {
Unreachable,
CallStackExhausted,
OutOfBoundsMemoryAccess,
OutOfBoundsTableAccess,
UndefinedElement,
UninitializedElement,
IndirectCallTypeMismatch,
IntegerDivideByZero,
IntegerOverflow,
InvalidConversionToInteger,
NullFunctionReference,
NullReference,
}Expand description
WebAssembly runtime traps surfaced by the interpreter.
Variants§
Unreachable
CallStackExhausted
OutOfBoundsMemoryAccess
OutOfBoundsTableAccess
UndefinedElement
UninitializedElement
IndirectCallTypeMismatch
IntegerDivideByZero
IntegerOverflow
InvalidConversionToInteger
NullFunctionReference
NullReference
Implementations§
Source§impl RuntimeTrap
impl RuntimeTrap
Sourcepub fn wast_message(self) -> &'static str
pub fn wast_message(self) -> &'static str
The canonical WAST assertion message for this trap.
Trait Implementations§
Source§impl Clone for RuntimeTrap
impl Clone for RuntimeTrap
Source§fn clone(&self) -> RuntimeTrap
fn clone(&self) -> RuntimeTrap
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RuntimeTrap
Source§impl Debug for RuntimeTrap
impl Debug for RuntimeTrap
impl Eq for RuntimeTrap
Source§impl PartialEq for RuntimeTrap
impl PartialEq for RuntimeTrap
impl StructuralPartialEq for RuntimeTrap
Auto Trait Implementations§
impl Freeze for RuntimeTrap
impl RefUnwindSafe for RuntimeTrap
impl Send for RuntimeTrap
impl Sync for RuntimeTrap
impl Unpin for RuntimeTrap
impl UnsafeUnpin for RuntimeTrap
impl UnwindSafe for RuntimeTrap
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more