pub enum Val {
I32(i32),
I64(i64),
F32(f32),
F64(f64),
FuncRef(FuncRef),
ExternRef(ExternRef),
}Expand description
A Wasm value.
Variants§
Implementations§
Source§impl Val
impl Val
Sourcepub fn is_func_ref(self) -> bool
pub fn is_func_ref(self) -> bool
Sourcepub fn is_extern_ref(self) -> bool
pub fn is_extern_ref(self) -> bool
Trait Implementations§
impl Copy for Val
impl StructuralPartialEq for Val
Auto Trait Implementations§
impl Freeze for Val
impl !RefUnwindSafe for Val
impl !Send for Val
impl !Sync for Val
impl Unpin for Val
impl !UnwindSafe for Val
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