pub enum ValType {
I32,
I64,
F32,
F64,
V128,
Ref(RefType),
}Expand description
A wasm value type. (Public/boundary type — the serializable internal form is canon::IrVal.)
Variants§
Implementations§
Source§impl ValType
impl ValType
Sourcepub const NULLFUNCREF: Self
pub const NULLFUNCREF: Self
The nullfuncref type, aka (ref null nofunc).
Sourcepub const NULLEXTERNREF: Self
pub const NULLEXTERNREF: Self
The nullexternref type, aka (ref null noextern).
Sourcepub const NULLEXNREF: Self
pub const NULLEXNREF: Self
The nullexnref type, aka (ref null noexn).
Trait Implementations§
impl Eq for ValType
impl StructuralPartialEq for ValType
Auto Trait Implementations§
impl Freeze for ValType
impl RefUnwindSafe for ValType
impl Send for ValType
impl Sync for ValType
impl Unpin for ValType
impl UnsafeUnpin for ValType
impl UnwindSafe for ValType
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.