#[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

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

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. 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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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.