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§

Implementors§

impl<'a> OptionIntoWasmAbi for &'a Array

impl<'a> OptionIntoWasmAbi for &'a BigInt

impl<'a> OptionIntoWasmAbi for &'a Boolean

impl<'a> OptionIntoWasmAbi for &'a DataView

impl<'a> OptionIntoWasmAbi for &'a Error

impl<'a> OptionIntoWasmAbi for &'a EvalError

impl<'a> OptionIntoWasmAbi for &'a Function

impl<'a> OptionIntoWasmAbi for &'a Generator

impl<'a> OptionIntoWasmAbi for &'a Map

impl<'a> OptionIntoWasmAbi for &'a Iterator

impl<'a> OptionIntoWasmAbi for &'a Number

impl<'a> OptionIntoWasmAbi for &'a Date

impl<'a> OptionIntoWasmAbi for &'a Object

impl<'a> OptionIntoWasmAbi for &'a Proxy

impl<'a> OptionIntoWasmAbi for &'a RangeError

impl<'a> OptionIntoWasmAbi for &'a RegExp

impl<'a> OptionIntoWasmAbi for &'a Set

impl<'a> OptionIntoWasmAbi for &'a TypeError

impl<'a> OptionIntoWasmAbi for &'a UriError

impl<'a> OptionIntoWasmAbi for &'a WeakMap

impl<'a> OptionIntoWasmAbi for &'a WeakSet

impl<'a> OptionIntoWasmAbi for &'a Instance

impl<'a> OptionIntoWasmAbi for &'a LinkError

impl<'a> OptionIntoWasmAbi for &'a Module

impl<'a> OptionIntoWasmAbi for &'a Table

impl<'a> OptionIntoWasmAbi for &'a Global

impl<'a> OptionIntoWasmAbi for &'a Memory

impl<'a> OptionIntoWasmAbi for &'a JsString

impl<'a> OptionIntoWasmAbi for &'a Symbol

impl<'a> OptionIntoWasmAbi for &'a Collator

impl<'a> OptionIntoWasmAbi for &'a Promise

impl<'a> OptionIntoWasmAbi for &'a Int8Array

impl<'a> OptionIntoWasmAbi for &'a Int16Array

impl<'a> OptionIntoWasmAbi for &'a Int32Array

impl<'a> OptionIntoWasmAbi for &'a Uint8Array

impl<'a> OptionIntoWasmAbi for &'a Transport

impl<'a> OptionIntoWasmAbi for &'a Connection