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
.
§⚠️ Unstable
This is part of the internal convert
module, no
stability guarantees are provided. Use at your own risk. See its
documentation for more details.
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.