Trait ToWasm
Source pub trait ToWasm {
type Wire;
// Required method
fn to_wire(self) -> Result<Self::Wire, WireError>;
}
Expand description
A type that can be handed to JavaScript, crossing the ABI as Self::Wire.
The type JavaScript actually receives.
Converts the Rust value into the wire value.
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Source§Available on crate feature wasm only.
Source§Available on crate feature wasm only.
Source§Available on crate feature wasm only.
Source§Available on crate feature wasm only.
Source§Available on crate feature wasm only.
Source§Available on crate feature wasm only.
Source§Available on crate feature wasm only.
Source§Available on crate feature wasm only.
Source§Available on crate feature wasm only.
Source§Available on crate feature wasm only.
Source§Available on crate feature wasm only.
Source§Available on crate feature wasm only.
Source§Available on crate feature wasm only.
Source§Available on crate feature wasm only.
Source§Available on crate feature wasm only.
Source§Available on crate feature wasm only.
Source§Available on crate feature wasm only.
Source§Available on crate feature wasm only.
Source§Available on crate feature wasm only.