pub enum WasmType {
I32,
I64,
F32,
F64,
I8,
I31Ref,
Anyref,
Ref(String, Nullable),
Array {
mutable: bool,
ty: Box<WasmType>,
},
Struct(Vec<StructField>),
Func(Box<Signature>),
Tag {
name: String,
signature: Box<Signature>,
},
}Variants§
I32
I64
F32
F64
I8
I31Ref
Anyref
Ref(String, Nullable)
Array
Struct(Vec<StructField>)
Func(Box<Signature>)
Tag
Implementations§
Source§impl WasmType
impl WasmType
pub fn is_numeric(&self) -> bool
pub fn compatible_numeric_types(left: &Self, right: &Self) -> bool
pub fn broader_numeric_type(left: &Self, right: &Self) -> Self
pub fn convert_to_instruction(&self, to_type: &Self) -> Vec<WatInstruction>
Trait Implementations§
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 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
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.