#[repr(C)]
pub union ValRaw {
/* private fields */
}
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
.
This is notably an “unsafe” way to work with Val
and it’s recommended to
instead use Val
where possible. An important note about this union is that
fields are all stored in little-endian format, regardless of the endianness
of the host system.
Implementations§
source§impl ValRaw
impl ValRaw
sourcepub fn get_funcref(&self) -> usize
pub fn get_funcref(&self) -> usize
Gets the WebAssembly funcref
value
sourcepub fn get_externref(&self) -> usize
pub fn get_externref(&self) -> usize
Gets the WebAssembly externref
value
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§
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