Expand description
Modules§
- wire 🔒
- How a type crosses the wasm ABI.
- wire_
macros 🔒 - The
impl_wire_*macros, which implement the wire traits.
Macros§
- impl_
wire_ object - Implements both traits for a type that crosses as itself: a
#[wasm_bindgen]handle, anextern "C"type, or a primitive wasm_bindgen already understands. - impl_
wire_ string - Implements the traits for a type that crosses as a
String, so a malformed string is aWireError::Parserather than a throw from insideFromWasmAbi.
Enums§
- Wire
Error - A value could not be converted across the wasm ABI.
Traits§
- From
Wasm - A type that can be received from JavaScript, crossing the ABI as
Self::Wire. - ToWasm
- A type that can be handed to JavaScript, crossing the ABI as
Self::Wire.
Attribute Macros§
- wasm_
export - Exports an impl block or a free function to JavaScript, in place of
#[cfg_attr(feature = "wasm", wasm_bindgen(..))]. - wasm_
import - Declares a block of JavaScript imports, in place of
#[wasm_bindgen]on anextern "C"block. - wasm_
object - Declares a type that crosses the wasm ABI as an opaque handle, in place of
#[cfg_attr(feature = "wasm", wasm_bindgen(..))]on a struct or an enum. - wasm_
record - Declares a type that crosses the wasm ABI through serde, in place of
#[cfg_attr(feature = "wasm", derive(Tsify), tsify(into_wasm_abi, from_wasm_abi))].