[−][src]Trait sauron::prelude::wasm_bindgen::convert::OptionIntoWasmAbi
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.
Implementations on Foreign Types
impl OptionIntoWasmAbi for Box<[i16]>
[src]
impl<'a> OptionIntoWasmAbi for &'a mut [u32]
[src]
impl<'a> OptionIntoWasmAbi for &'a mut [u8]
[src]
impl<'a> OptionIntoWasmAbi for &'a mut [f64]
[src]
impl<'a> OptionIntoWasmAbi for &'a mut [u64]
[src]
impl<'a> OptionIntoWasmAbi for &'a [i32]
[src]
impl<'a> OptionIntoWasmAbi for &'a [usize]
[src]
impl<'a> OptionIntoWasmAbi for &'a [u8]
[src]
impl OptionIntoWasmAbi for String
[src]
pub fn none() -> <String as IntoWasmAbi>::Abi
[src]
impl<'a> OptionIntoWasmAbi for &'a mut [i8]
[src]
impl OptionIntoWasmAbi for u8
[src]
impl<'a> OptionIntoWasmAbi for &'a mut [u16]
[src]
impl<'a> OptionIntoWasmAbi for &'a [i64]
[src]
impl<'a> OptionIntoWasmAbi for &'a [u64]
[src]
impl OptionIntoWasmAbi for char
[src]
impl OptionIntoWasmAbi for Box<[u8]>
[src]
impl<'a> OptionIntoWasmAbi for &'a mut [isize]
[src]
impl<'a> OptionIntoWasmAbi for &'a [u32]
[src]
impl OptionIntoWasmAbi for i16
[src]
impl<'a> OptionIntoWasmAbi for &'a mut [f32]
[src]
impl<'a> OptionIntoWasmAbi for &'a mut [i32]
[src]
impl OptionIntoWasmAbi for bool
[src]
impl<'a> OptionIntoWasmAbi for &'a [f64]
[src]
impl OptionIntoWasmAbi for Box<[f32]>
[src]
impl OptionIntoWasmAbi for Box<[i8]>
[src]
impl<'a> OptionIntoWasmAbi for &'a str
[src]
pub fn none() -> <&'a str as IntoWasmAbi>::Abi
[src]
impl OptionIntoWasmAbi for Box<[u32]>
[src]
impl OptionIntoWasmAbi for u16
[src]
impl OptionIntoWasmAbi for Box<[i64]>
[src]
impl<'a> OptionIntoWasmAbi for &'a [u16]
[src]
impl OptionIntoWasmAbi for Box<[u64]>
[src]
impl<T> OptionIntoWasmAbi for Vec<T> where
Box<[T]>: IntoWasmAbi,
<Box<[T]> as IntoWasmAbi>::Abi == WasmSlice,
[src]
Box<[T]>: IntoWasmAbi,
<Box<[T]> as IntoWasmAbi>::Abi == WasmSlice,