[−][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
pub 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 OptionFromWasmAbi for Box<[f32], Global>
[src]
impl OptionFromWasmAbi for u8
[src]
impl OptionFromWasmAbi for Box<[u64], Global>
[src]
impl OptionFromWasmAbi for u16
[src]
impl OptionFromWasmAbi for Box<[i8], Global>
[src]
impl OptionFromWasmAbi for char
[src]
impl OptionFromWasmAbi for Box<[usize], Global>
[src]
impl OptionFromWasmAbi for Box<[isize], Global>
[src]
impl OptionFromWasmAbi for Box<[u8], Global>
[src]
impl OptionFromWasmAbi for i16
[src]
impl OptionFromWasmAbi for Box<[u32], Global>
[src]
impl OptionFromWasmAbi for String
[src]
impl<T> OptionFromWasmAbi for Vec<T, Global> where
Box<[T], Global>: FromWasmAbi,
<Box<[T], Global> as FromWasmAbi>::Abi == WasmSlice,
[src]
Box<[T], Global>: FromWasmAbi,
<Box<[T], Global> as FromWasmAbi>::Abi == WasmSlice,