pub trait OptionIntoWasmAbi: IntoWasmAbi {
    fn none() -> Self::Abi;
Expand description

Indicates that this type can be passed to JS as Option<Self>.

This trait is used when implementing IntoWasmAbi for Option<T>.

Required Methods§

Returns an ABI instance indicating “none”, which JS will interpret as the None branch of this option.

It should be guaranteed that the IntoWasmAbi can never produce the ABI value returned here.

Implementations on Foreign Types§