pub enum CompiledTrap {
Normal(Trap),
InternalAssert,
GcHeapCorrupt,
}Expand description
Possible traps that can be compiled into WebAssembly modules.
Variants§
Normal(Trap)
A normal trap, expected to possibly be hit at runtime.
InternalAssert
An internal assertion in the compiled code itself.
GcHeapCorrupt
The GC heap was detected as being corrupt.
Implementations§
Trait Implementations§
Source§impl Clone for CompiledTrap
impl Clone for CompiledTrap
Source§fn clone(&self) -> CompiledTrap
fn clone(&self) -> CompiledTrap
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CompiledTrap
impl Debug for CompiledTrap
Source§impl From<Trap> for CompiledTrap
impl From<Trap> for CompiledTrap
Source§fn from(trap: Trap) -> CompiledTrap
fn from(trap: Trap) -> CompiledTrap
Converts to this type from the input type.
Source§impl PartialEq for CompiledTrap
impl PartialEq for CompiledTrap
impl Eq for CompiledTrap
impl StructuralPartialEq for CompiledTrap
Auto Trait Implementations§
impl Freeze for CompiledTrap
impl RefUnwindSafe for CompiledTrap
impl Send for CompiledTrap
impl Sync for CompiledTrap
impl Unpin for CompiledTrap
impl UnsafeUnpin for CompiledTrap
impl UnwindSafe for CompiledTrap
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more