pub trait OptionIntoWasmAbi: IntoWasmAbi {
// Required method
fn none() -> Self::Abi;
}Expand description
Indicates that this type can be passed to JS as Option<Self> over its own
ABI, which has a spare value for None.
Implementing it provides MaybeIntoWasmAbi, which Option<T> converts
through; a type whose ABI has no spare value implements that trait
directly instead.
§⚠️ 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 Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".