pub enum WasmValueType {
I32,
I64,
F32,
F64,
V128,
FuncRef,
ExternRef,
}Expand description
Core WebAssembly value types.
Variants§
I32
32-bit integer.
I64
64-bit integer.
F32
32-bit float.
F64
64-bit float.
V128
128-bit vector.
FuncRef
Function reference.
ExternRef
External reference.
Implementations§
Source§impl WasmValueType
impl WasmValueType
Sourcepub const fn is_numeric(self) -> bool
pub const fn is_numeric(self) -> bool
Returns ‘true’ for numeric scalar value types.
Sourcepub const fn is_reference(self) -> bool
pub const fn is_reference(self) -> bool
Returns ‘true’ for reference value types.
Trait Implementations§
Source§impl Clone for WasmValueType
impl Clone for WasmValueType
Source§fn clone(&self) -> WasmValueType
fn clone(&self) -> WasmValueType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WasmValueType
impl Debug for WasmValueType
Source§impl Default for WasmValueType
impl Default for WasmValueType
Source§fn default() -> WasmValueType
fn default() -> WasmValueType
Returns the “default value” for a type. Read more
Source§impl Display for WasmValueType
impl Display for WasmValueType
Source§impl FromStr for WasmValueType
impl FromStr for WasmValueType
Source§impl Hash for WasmValueType
impl Hash for WasmValueType
Source§impl Ord for WasmValueType
impl Ord for WasmValueType
Source§fn cmp(&self, other: &WasmValueType) -> Ordering
fn cmp(&self, other: &WasmValueType) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for WasmValueType
impl PartialEq for WasmValueType
Source§fn eq(&self, other: &WasmValueType) -> bool
fn eq(&self, other: &WasmValueType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for WasmValueType
impl PartialOrd for WasmValueType
Source§impl TryFrom<u8> for WasmValueType
impl TryFrom<u8> for WasmValueType
impl Copy for WasmValueType
impl Eq for WasmValueType
impl StructuralPartialEq for WasmValueType
Auto Trait Implementations§
impl Freeze for WasmValueType
impl RefUnwindSafe for WasmValueType
impl Send for WasmValueType
impl Sync for WasmValueType
impl Unpin for WasmValueType
impl UnsafeUnpin for WasmValueType
impl UnwindSafe for WasmValueType
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