pub trait MaybeFromWasmAbi: FromWasmAbi {
type MaybeAbi: WasmAbi;
// Required methods
unsafe fn from_maybe_abi(abi: Self::MaybeAbi) -> Self;
fn is_none(abi: &Self::MaybeAbi) -> bool;
}Expand description
The ABI of Option<Self> received from JS. See MaybeIntoWasmAbi.
§⚠️ 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§
Sourceunsafe fn from_maybe_abi(abi: Self::MaybeAbi) -> Self
unsafe fn from_maybe_abi(abi: Self::MaybeAbi) -> Self
Recovers a value from the Option<Self> ABI, once
is_none has ruled None out.
§Safety
As for FromWasmAbi::from_abi.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".