Enum wasm_runtime_layer::backend::Value
source · pub enum Value<E: WasmEngine> {
I32(i32),
I64(i64),
F32(f32),
F64(f64),
FuncRef(Option<E::Func>),
ExternRef(Option<E::ExternRef>),
}
Expand description
Runtime representation of a value.
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<E::Func>)
An optional function reference.
ExternRef(Option<E::ExternRef>)
An optional external reference.
Trait Implementations§
source§impl<E: WasmEngine> Debug for Value<E>
impl<E: WasmEngine> Debug for Value<E>
Auto Trait Implementations§
impl<E> Freeze for Value<E>
impl<E> RefUnwindSafe for Value<E>
impl<E> Send for Value<E>
impl<E> Sync for Value<E>
impl<E> Unpin for Value<E>
impl<E> UnwindSafe for Value<E>
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