pub enum WasmType {
I32,
I64,
F32,
F64,
V128,
Ref(RefType),
}Expand description
Type of a WebAssembly value.
See https://webassembly.github.io/spec/core/syntax/types.html#syntax-valtype
Variants§
I32
A 32-bit integer.
I64
A 64-bit integer.
F32
A 32-bit float.
F64
A 64-bit float.
V128
A 128-bit vector.
Ref(RefType)
A reference type.
Trait Implementations§
impl Copy for WasmType
Source§impl<'de> Deserialize<'de> for WasmType
impl<'de> Deserialize<'de> for WasmType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for WasmType
Source§impl From<StorageType> for WasmType
impl From<StorageType> for WasmType
Source§fn from(value: StorageType) -> Self
fn from(value: StorageType) -> Self
Converts to this type from the input type.
Source§impl<'a> FromIterator<&'a WasmType> for ValueCounts
impl<'a> FromIterator<&'a WasmType> for ValueCounts
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 UnsafeUnpin 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
Mutably borrows from an owned value. Read more