#[repr(C)]
pub union ValRaw {
pub i32: i32,
pub i64: i64,
pub f32: u32,
pub f64: u64,
pub v128: u128,
pub funcref: usize,
pub externref: usize,
}
Expand description
A “raw” and unsafe representation of a WebAssembly value.
This is provided for use with the Func::new_unchecked
and
Func::call_unchecked
APIs. In general it’s unlikely you should be using
this from Rust, rather using APIs like Func::wrap
and TypedFunc::call
.
Fields
i32: i32
i64: i64
f32: u32
f64: u64
v128: u128
funcref: usize
externref: usize
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ValRaw
impl Send for ValRaw
impl Sync for ValRaw
impl Unpin for ValRaw
impl UnwindSafe for ValRaw
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
impl<T> Pointable for T
impl<T> Pointable for T
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