Trait wasm_bindgen::convert::FromWasmAbi
source · [−]pub trait FromWasmAbi: WasmDescribe {
type Abi: WasmAbi;
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
.