pub trait IntoWasmAbi: WasmDescribe {
type Abi: WasmAbi;
// Required method
fn into_abi(self) -> Self::Abi;
}
Expand description
A trait for anything that can be converted into a type that can cross the
Wasm ABI directly, eg u32
or f64
.
This is the opposite operation as FromWasmAbi
and Ref[Mut]FromWasmAbi
.
§⚠️ 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§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.