pub enum ValType {
I32,
I64,
F32,
F64,
V128,
Ref(RefType),
}
Expand description
The type of a core WebAssembly value.
Variants§
I32
The i32
type.
I64
The i64
type.
F32
The f32
type.
F64
The f64
type.
V128
The v128
type.
Part of the SIMD proposal.
Ref(RefType)
A reference type.
The funcref
and externref
type fall into this category and the full
generalization here is due to the implementation of the
function-references proposal.
Implementations§
Source§impl ValType
impl ValType
Sourcepub fn is_numeric(&self) -> bool
pub fn is_numeric(&self) -> bool
Is this a numeric value type?
Sourcepub fn is_reference(&self) -> bool
pub fn is_reference(&self) -> bool
Is this a reference type?
Trait Implementations§
Source§impl Ord for ValType
impl Ord for ValType
Source§impl PartialOrd for ValType
impl PartialOrd for ValType
impl Copy for ValType
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 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)