pub enum Value {
I32(i32),
I64(i64),
F32(f32),
F64(f64),
FuncRef(Option<(u32, u32)>),
ExternRef(Option<u32>),
V128([u8; 16]),
}Expand description
A runtime WebAssembly value.
Variants§
I32(i32)
I64(i64)
F32(f32)
F64(f64)
FuncRef(Option<(u32, u32)>)
A reference value: either null or an (instance, function) pair
identifying a function in some instance. Instance identity makes
funcref values meaningful across linked modules; instance 0 is the
default for unlinked execution.
ExternRef(Option<u32>)
An external reference value from the host: either null or a host-assigned index.
V128([u8; 16])
A 128-bit vector, stored as raw little-endian bytes; lane interpretation happens per operation.
Trait Implementations§
impl Copy for Value
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnsafeUnpin for Value
impl UnwindSafe for Value
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