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 Error for TrapError
impl Error for TrapError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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