[][src]Trait wasm_bindgen::convert::OptionIntoWasmAbi

pub trait OptionIntoWasmAbi: IntoWasmAbi {
    fn none() -> Self::Abi;
}

Indicates that this type can be passed to JS as Option<Self>.

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

Required methods

fn none() -> Self::Abi

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.

Loading content...

Implementations on Foreign Types

impl OptionIntoWasmAbi for i8[src]

impl OptionIntoWasmAbi for u8[src]

impl OptionIntoWasmAbi for i16[src]

impl OptionIntoWasmAbi for u16[src]

impl OptionIntoWasmAbi for bool[src]

impl OptionIntoWasmAbi for char[src]

impl OptionIntoWasmAbi for Box<[u8]>[src]

impl<'a> OptionIntoWasmAbi for &'a [u8][src]

impl<'a> OptionIntoWasmAbi for &'a mut [u8][src]

impl OptionIntoWasmAbi for Box<[i8]>[src]

impl<'a> OptionIntoWasmAbi for &'a [i8][src]

impl<'a> OptionIntoWasmAbi for &'a mut [i8][src]

impl OptionIntoWasmAbi for Box<[u16]>[src]

impl<'a> OptionIntoWasmAbi for &'a [u16][src]

impl<'a> OptionIntoWasmAbi for &'a mut [u16][src]

impl OptionIntoWasmAbi for Box<[i16]>[src]

impl<'a> OptionIntoWasmAbi for &'a [i16][src]

impl<'a> OptionIntoWasmAbi for &'a mut [i16][src]

impl OptionIntoWasmAbi for Box<[u32]>[src]

impl<'a> OptionIntoWasmAbi for &'a [u32][src]

impl<'a> OptionIntoWasmAbi for &'a mut [u32][src]

impl OptionIntoWasmAbi for Box<[i32]>[src]

impl<'a> OptionIntoWasmAbi for &'a [i32][src]

impl<'a> OptionIntoWasmAbi for &'a mut [i32][src]

impl OptionIntoWasmAbi for Box<[u64]>[src]

impl<'a> OptionIntoWasmAbi for &'a [u64][src]

impl<'a> OptionIntoWasmAbi for &'a mut [u64][src]

impl OptionIntoWasmAbi for Box<[i64]>[src]

impl<'a> OptionIntoWasmAbi for &'a [i64][src]

impl<'a> OptionIntoWasmAbi for &'a mut [i64][src]

impl OptionIntoWasmAbi for Box<[usize]>[src]

impl<'a> OptionIntoWasmAbi for &'a [usize][src]

impl<'a> OptionIntoWasmAbi for &'a mut [usize][src]

impl OptionIntoWasmAbi for Box<[isize]>[src]

impl<'a> OptionIntoWasmAbi for &'a [isize][src]

impl<'a> OptionIntoWasmAbi for &'a mut [isize][src]

impl OptionIntoWasmAbi for Box<[f32]>[src]

impl<'a> OptionIntoWasmAbi for &'a [f32][src]

impl<'a> OptionIntoWasmAbi for &'a mut [f32][src]

impl OptionIntoWasmAbi for Box<[f64]>[src]

impl<'a> OptionIntoWasmAbi for &'a [f64][src]

impl<'a> OptionIntoWasmAbi for &'a mut [f64][src]

impl<T> OptionIntoWasmAbi for Vec<T> where
    Box<[T]>: IntoWasmAbi<Abi = WasmSlice>, 
[src]

impl OptionIntoWasmAbi for String[src]

impl<'a> OptionIntoWasmAbi for &'a str[src]

impl OptionIntoWasmAbi for Box<[JsValue]>[src]

Loading content...

Implementors

Loading content...