Expand description
Re-exports§
pub use large_vec::LargeVec;pub use large_vec::LargeVecError;
Modules§
- large_
vec LargeVec, a list parameter converted from JavaScript item by item as it is read, and its iterator.- 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_ record - Implements the traits for a serde DTO, which crosses as
Ts<Self>. - 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.
Structs§
- Ts
- A wrapper for a type implementing [
Tsify], to be used in#[wasm_bindgen]function parameters and return types.
Enums§
- Never
- Stands in for the error of a shim whose underlying method cannot fail.
- TsError
- Error of a generated shim.
- 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, as
Ts<Self>.