Trait wasm_bindgen::convert::FromWasmAbi
source · pub trait FromWasmAbi: WasmDescribe {
type Abi: WasmAbi;
// Required method
unsafe fn from_abi(js: Self::Abi) -> Self;
}
Expand description
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 ABI u32
type.
This is the by-value variant of the opposite operation as IntoWasmAbi
.
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.