pub trait OptionFromWasmAbi: FromWasmAbi {
    // Required method
    fn is_none(abi: &Self::Abi) -> bool;
}
Expand description

Indicates that this type can be received from JS as Option<Self>.

This trait is used when implementing FromWasmAbi for Option<T>.

Required Methods§

source

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§

source§

impl OptionFromWasmAbi for Box<[i8]>

source§

impl<T> OptionFromWasmAbi for Box<[T]>where T: JsObject,

source§

impl OptionFromWasmAbi for Box<[u8]>

source§

impl OptionFromWasmAbi for i8

source§

impl OptionFromWasmAbi for bool

source§

impl OptionFromWasmAbi for Box<[f32]>

source§

impl OptionFromWasmAbi for u16

source§

impl OptionFromWasmAbi for Box<[JsValue]>

source§

impl OptionFromWasmAbi for Box<[i32]>

source§

impl OptionFromWasmAbi for u8

source§

impl OptionFromWasmAbi for Box<[usize]>

source§

impl OptionFromWasmAbi for i16

source§

impl OptionFromWasmAbi for Box<[i16]>

source§

impl OptionFromWasmAbi for Box<[u16]>

source§

impl<T> OptionFromWasmAbi for Vec<T>where Box<[T]>: FromWasmAbi<Abi = WasmSlice>,

source§

impl OptionFromWasmAbi for Box<[i64]>

source§

impl OptionFromWasmAbi for Box<[u64]>

source§

impl OptionFromWasmAbi for Box<[isize]>

source§

impl OptionFromWasmAbi for String

source§

impl OptionFromWasmAbi for char

source§

impl OptionFromWasmAbi for Box<[u32]>

source§

impl OptionFromWasmAbi for Box<[f64]>

Implementors§