[−][src]Trait sauron::prelude::wasm_bindgen::convert::OptionFromWasmAbi
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
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 OptionFromWasmAbi for Box<[i64]>
[src]
impl OptionFromWasmAbi for Box<[u64]>
[src]
impl OptionFromWasmAbi for Box<[isize]>
[src]
impl OptionFromWasmAbi for Box<[u32]>
[src]
impl OptionFromWasmAbi for Box<[i16]>
[src]
impl OptionFromWasmAbi for Box<[u16]>
[src]
impl OptionFromWasmAbi for u8
[src]
impl OptionFromWasmAbi for Box<[u8]>
[src]
impl<T> OptionFromWasmAbi for Vec<T> where
Box<[T]>: FromWasmAbi,
<Box<[T]> as FromWasmAbi>::Abi == WasmSlice,
[src]
Box<[T]>: FromWasmAbi,
<Box<[T]> as FromWasmAbi>::Abi == WasmSlice,