pub enum WasmValue {
Primitive(Val),
Exn(Option<OwnedRooted<ExnRef>>),
Func(Option<Func>),
}Expand description
Representation of a Wasm value.
This is distinct from wasmtime::Val because we need the Owned
variants of GC references here.
Variants§
Primitive(Val)
A primitive (non-GC) value.
Exn(Option<OwnedRooted<ExnRef>>)
An exception object.
Func(Option<Func>)
A funcref.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WasmValue
impl RefUnwindSafe for WasmValue
impl Send for WasmValue
impl Sync for WasmValue
impl Unpin for WasmValue
impl UnsafeUnpin for WasmValue
impl UnwindSafe for WasmValue
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