Trait OptionFromWasmAbi
pub trait OptionFromWasmAbi: FromWasmAbi
Indicates that this type can be received from JS as Option<Self>.
This trait is used when implementing FromWasmAbi for Option<T>.
⚠️ 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
fn is_none(abi: &Self::Abi) -> boolTests whether the argument is a "none" instance. If so it will be deserialized as
None, and otherwise it will be passed toFromWasmAbi.
Implementors
impl OptionFromWasmAbi for JsValueimpl OptionFromWasmAbi for Nullimpl OptionFromWasmAbi for Stringimpl OptionFromWasmAbi for Undefinedimpl OptionFromWasmAbi for boolimpl OptionFromWasmAbi for charimpl OptionFromWasmAbi for i16impl OptionFromWasmAbi for i8impl OptionFromWasmAbi for u16impl OptionFromWasmAbi for u8impl<T> OptionFromWasmAbi for Box<[T]> where Self: FromWasmAbi<Abi = WasmSlice>,impl<T> OptionFromWasmAbi for JsNullable<T>impl<T> OptionFromWasmAbi for JsOption<T>impl<T> OptionFromWasmAbi for NonNull<T>impl<T> OptionFromWasmAbi for Vec<T> where Box<[T]>: FromWasmAbi<Abi = WasmSlice>,