Trait wasm_bindgen::convert::OptionFromWasmAbi [−][src]
pub trait OptionFromWasmAbi: FromWasmAbi { fn is_none(abi: &Self::Abi) -> bool; }
Indicates that this type can be received from JS as Option<Self>
.
This trait is used when implementing FromWasmAbi for Option<T>
.
Required methods
fn is_none(abi: &Self::Abi) -> bool
[src]
Tests whether the argument is a “none” instance. If so it will be
deserialized as None
, and otherwise it will be passed to
FromWasmAbi
.
Implementations on Foreign Types
impl<T> OptionFromWasmAbi for Vec<T> where
Box<[T]>: FromWasmAbi<Abi = WasmSlice>,
[src]
impl<T> OptionFromWasmAbi for Vec<T> where
Box<[T]>: FromWasmAbi<Abi = WasmSlice>,
[src]