Enum wasm_encoder::ValType
source · 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§
Trait Implementations§
source§impl Ord for ValType
impl Ord for ValType
source§impl PartialEq<ValType> for ValType
impl PartialEq<ValType> for ValType
source§impl PartialOrd<ValType> for ValType
impl PartialOrd<ValType> 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