pub enum ValType {
I32,
I64,
F32,
F64,
V128,
Externref,
Funcref,
}
Expand description
A value type.
Variants§
I32
32-bit integer.
I64
64-bit integer.
F32
32-bit float.
F64
64-bit float.
V128
128-bit vector.
Externref
The externref
opaque value type
Funcref
The funcref
value type, representing a callable function
Trait Implementations§
source§impl From<ValType> for InstrSeqType
impl From<ValType> for InstrSeqType
source§fn from(x: ValType) -> InstrSeqType
fn from(x: ValType) -> InstrSeqType
Converts to this type from the input type.
source§impl Ord for ValType
impl Ord for ValType
source§impl PartialEq for ValType
impl PartialEq for ValType
source§impl PartialOrd for ValType
impl PartialOrd for ValType
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ValType
impl Eq for ValType
impl StructuralEq for ValType
impl StructuralPartialEq for ValType
Auto Trait Implementations§
impl RefUnwindSafe for ValType
impl Send for ValType
impl Sync for ValType
impl Unpin 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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.