pub enum WasmType {
I32,
I64,
F32,
F64,
Pointer,
PointerOrI64,
Length,
}
Expand description
Enumerates wasm types used by interface types when lowering/lifting.
Variants§
I32
I64
F32
F64
Pointer
A pointer type. In core Wasm this typically lowers to either i32
or
i64
depending on the index type of the exported linear memory,
however bindings can use different source-level types to preserve
provenance.
Users that don’t do anything special for pointers can treat this as
i32
.
PointerOrI64
A type for values which can be either pointers or 64-bit integers. This occurs in variants, when pointers and non-pointers are unified.
Users that don’t do anything special for pointers can treat this as
i64
.
Length
An array length type. In core Wasm this lowers to either i32
or i64
depending on the index type of the exported linear memory.
Users that don’t do anything special for pointers can treat this as
i32
.
Trait Implementations§
source§impl Ord for WasmType
impl Ord for WasmType
source§impl PartialOrd for WasmType
impl PartialOrd for WasmType
impl Copy for WasmType
impl Eq for WasmType
impl StructuralPartialEq for WasmType
Auto Trait Implementations§
impl Freeze for WasmType
impl RefUnwindSafe for WasmType
impl Send for WasmType
impl Sync for WasmType
impl Unpin for WasmType
impl UnwindSafe for WasmType
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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
key
and return true
if they are equal.