pub enum WasmValue {
Void,
I32(i32),
I64(i64),
F32(f32),
F64(f64),
V128(i128),
}
Variants§
Implementations§
Source§impl WasmValue
impl WasmValue
pub fn encode(&self) -> Vec<u32>
pub fn decode_to_i32(binary: Vec<u32>) -> WasmValue
pub fn decode_to_f32(binary: Vec<u32>) -> WasmValue
pub fn decode_to_i64(binary: Vec<u32>) -> WasmValue
pub fn decode_to_f64(binary: Vec<u32>) -> WasmValue
pub fn decode_to_v128(binary: Vec<u32>) -> WasmValue
Trait Implementations§
impl StructuralPartialEq for WasmValue
Auto Trait Implementations§
impl Freeze for WasmValue
impl RefUnwindSafe for WasmValue
impl Send for WasmValue
impl Sync for WasmValue
impl Unpin 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