Enum cranelift_wasm::wasmparser::ValType
source · [−]pub enum ValType {
I32,
I64,
F32,
F64,
V128,
FuncRef,
ExternRef,
}
Expand description
Represents the types of values in a WebAssembly module.
Variants
I32
The value type is i32.
I64
The value type is i64.
F32
The value type is f32.
F64
The value type is f64.
V128
The value type is v128.
FuncRef
The value type is a function reference.
ExternRef
The value type is an extern reference.
Implementations
sourceimpl ValType
impl ValType
sourcepub fn is_reference_type(&self) -> bool
pub fn is_reference_type(&self) -> bool
Returns whether this value type is a “reference type”.
Only reference types are allowed in tables, for example, and with some
instructions. Current reference types include funcref
and externref
.
Trait Implementations
impl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more