Enum wasm_runtime_layer::Value
source · pub enum Value {
I32(i32),
I64(i64),
F32(f32),
F64(f64),
FuncRef(Option<Func>),
ExternRef(Option<ExternRef>),
}
Expand description
Runtime representation of a value.
Wasm code manipulate values of the four basic value types: integers and floating-point data of 32 or 64 bit width each, respectively.
There is no distinction between signed and unsigned integer types. Instead, integers are interpreted by respective operations as either unsigned or signed in two’s complement representation.
Variants§
I32(i32)
Value of 32-bit signed or unsigned integer.
I64(i64)
Value of 64-bit signed or unsigned integer.
F32(f32)
Value of 32-bit floating point number.
F64(f64)
Value of 64-bit floating point number.
FuncRef(Option<Func>)
An optional function reference.
ExternRef(Option<ExternRef>)
An optional external reference.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Value
impl !RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin 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