pub enum WasmVal {
I32(i32),
I64(i64),
F32(u32),
F64(u64),
}Expand description
A WASM numeric value, used for function call arguments and return values.
F32 and F64 are stored as their bit representations (u32 and u64)
so that WasmVal can derive Eq and remain free of IEEE754 float
comparison edge cases.
Variants§
Trait Implementations§
impl Copy for WasmVal
impl Eq for WasmVal
impl StructuralPartialEq for WasmVal
Auto Trait Implementations§
impl Freeze for WasmVal
impl RefUnwindSafe for WasmVal
impl Send for WasmVal
impl Sync for WasmVal
impl Unpin for WasmVal
impl UnsafeUnpin for WasmVal
impl UnwindSafe for WasmVal
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.