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.
Creates a WebAssembly i32 value
Creates a WebAssembly i64 value
Creates a WebAssembly i32 value
Creates a WebAssembly i64 value
Creates a WebAssembly f32 value
Creates a WebAssembly f64 value
Creates a WebAssembly v128 value
Creates a WebAssembly funcref value
Creates a WebAssembly externref value
Gets the WebAssembly i32 value
Gets the WebAssembly i64 value
Gets the WebAssembly i32 value
Gets the WebAssembly i64 value
Gets the WebAssembly f32 value
Gets the WebAssembly f64 value
Gets the WebAssembly v128 value
Gets the WebAssembly funcref value
Gets the WebAssembly externref value
Performs copy-assignment from
source.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From<T> for U chooses to do.
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer.
Read more
Mutably dereferences the given pointer.
Read more
Drops the object pointed to by the given pointer.
Read more
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more
Uses borrowed data to replace owned data, usually by cloning.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.