Expand description
§⚠️ Unstable
This is an internal module, no stability guarantees are provided. Use at your own risk.
Structs§
- WasmRet
- A repr(C) struct containing all of the primitives of a
WasmAbi
type, in order. - Wasm
Slice - ⚠️ Unstable
Traits§
- From
Wasm Abi - A trait for anything that can be recovered by-value from the Wasm ABI
boundary, eg a Rust
u8
can be recovered from the Wasm ABIu32
type. - Into
Wasm Abi - A trait for anything that can be converted into a type that can cross the
Wasm ABI directly, eg
u32
orf64
. - Long
RefFrom Wasm Abi - A version of the
RefFromWasmAbi
trait with the additional requirement that the reference must remain valid as long as the anchor isn’t dropped. - Option
From Wasm Abi - Indicates that this type can be received from JS as
Option<Self>
. - Option
Into Wasm Abi - Indicates that this type can be passed to JS as
Option<Self>
. - RefFrom
Wasm Abi - A trait for anything that can be recovered as some sort of shared reference from the Wasm ABI boundary.
- RefMut
From Wasm Abi - Dual of the
RefFromWasmAbi
trait, except for mutable references. - Return
Wasm Abi - A trait representing how to interpret the return value of a function for the Wasm ABI.
- TryFrom
JsValue TryFromJsValue
is a trait for converting a JavaScript value (JsValue
) into a Rust type. It is used by thewasm_bindgen
proc-macro to allow conversion to user types.- Vector
From Wasm Abi - Trait for element types to implement FromWasmAbi for vectors of themselves.
- Vector
Into Wasm Abi - Trait for element types to implement IntoWasmAbi for vectors of themselves.
- WasmAbi
- A trait which represents types that can be passed across the Wasm ABI boundary, by being split into multiple Wasm primitive types.
- Wasm
Primitive - A trait for any type which maps to a Wasm primitive type when used in FFI
(
i32
,i64
,f32
, orf64
).
Functions§
- js_
value_ ⚠vector_ from_ abi - ⚠️ Unstable
- js_
value_ vector_ into_ abi - ⚠️ Unstable