pub enum TrapError {
DivideBy0,
UnrepresentableResult,
BadConversionToInteger,
MemoryOrDataAccessOutOfBounds,
TableOrElementAccessOutOfBounds,
UninitializedElement,
SignatureMismatch,
IndirectCallNullFuncRef,
TableAccessOutOfBounds,
ReachedUnreachable,
}
Variants§
DivideBy0
UnrepresentableResult
BadConversionToInteger
MemoryOrDataAccessOutOfBounds
An access to a memory or data was out of bounds.
Note: As of now, there is no way to distinguish between both of these. The reference interpreter and Wast testsuite messages call this error “memory access out of bounds”.
TableOrElementAccessOutOfBounds
An access to a table or an element was out of bounds.
Note: As of now, there is no way to distinguish between both of these. The reference interpreter and Wast testsuite messages call this error “table access out of bounds”.
UninitializedElement
SignatureMismatch
IndirectCallNullFuncRef
TableAccessOutOfBounds
ReachedUnreachable
Trait Implementations§
Source§impl From<TrapError> for RuntimeError
impl From<TrapError> for RuntimeError
impl Eq for TrapError
impl StructuralPartialEq for TrapError
Auto Trait Implementations§
impl Freeze for TrapError
impl RefUnwindSafe for TrapError
impl Send for TrapError
impl Sync for TrapError
impl Unpin for TrapError
impl UnwindSafe for TrapError
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