devela::_dep::wasm_bindgen::convert

Trait OptionIntoWasmAbi

Source
pub trait OptionIntoWasmAbi: IntoWasmAbi {
    // Required method
    fn none() -> Self::Abi;
}
Available on crate feature dep_wasm_bindgen only.
Expand description

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

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

§⚠️ Unstable

This is part of the internal convert module, no stability guarantees are provided. Use at your own risk. See its documentation for more details.

Required Methods§

Source

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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl OptionIntoWasmAbi for &str

Source§

impl OptionIntoWasmAbi for bool

Source§

impl OptionIntoWasmAbi for char

Source§

impl OptionIntoWasmAbi for i8

Source§

impl OptionIntoWasmAbi for i16

Source§

impl OptionIntoWasmAbi for u8

Source§

impl OptionIntoWasmAbi for u16

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Implementors§

Source§

impl OptionIntoWasmAbi for String

Source§

impl OptionIntoWasmAbi for Collator

Source§

impl OptionIntoWasmAbi for DateTimeFormat

Source§

impl OptionIntoWasmAbi for NumberFormat

Source§

impl OptionIntoWasmAbi for PluralRules

Source§

impl OptionIntoWasmAbi for RelativeTimeFormat

Source§

impl OptionIntoWasmAbi for CompileError

Source§

impl OptionIntoWasmAbi for Exception

Source§

impl OptionIntoWasmAbi for Global

Source§

impl OptionIntoWasmAbi for Instance

Source§

impl OptionIntoWasmAbi for LinkError

Source§

impl OptionIntoWasmAbi for Memory

Source§

impl OptionIntoWasmAbi for Module

Source§

impl OptionIntoWasmAbi for RuntimeError

Source§

impl OptionIntoWasmAbi for Table

Source§

impl OptionIntoWasmAbi for Tag

Source§

impl OptionIntoWasmAbi for Array

Source§

impl OptionIntoWasmAbi for ArrayBuffer

Source§

impl OptionIntoWasmAbi for AsyncIterator

Source§

impl OptionIntoWasmAbi for BigInt64Array

Source§

impl OptionIntoWasmAbi for BigInt

Source§

impl OptionIntoWasmAbi for BigUint64Array

Source§

impl OptionIntoWasmAbi for Boolean

Source§

impl OptionIntoWasmAbi for DataView

Source§

impl OptionIntoWasmAbi for Date

Source§

impl OptionIntoWasmAbi for Error

Source§

impl OptionIntoWasmAbi for EvalError

Source§

impl OptionIntoWasmAbi for Float32Array

Source§

impl OptionIntoWasmAbi for Float64Array

Source§

impl OptionIntoWasmAbi for Function

Source§

impl OptionIntoWasmAbi for Generator

Source§

impl OptionIntoWasmAbi for Int8Array

Source§

impl OptionIntoWasmAbi for Int16Array

Source§

impl OptionIntoWasmAbi for Int32Array

Source§

impl OptionIntoWasmAbi for Iterator

Source§

impl OptionIntoWasmAbi for IteratorNext

Source§

impl OptionIntoWasmAbi for JsString

Source§

impl OptionIntoWasmAbi for Map

Source§

impl OptionIntoWasmAbi for Number

Source§

impl OptionIntoWasmAbi for Object

Source§

impl OptionIntoWasmAbi for Promise

Source§

impl OptionIntoWasmAbi for Proxy

Source§

impl OptionIntoWasmAbi for RangeError

Source§

impl OptionIntoWasmAbi for ReferenceError

Source§

impl OptionIntoWasmAbi for RegExp

Source§

impl OptionIntoWasmAbi for Set

Source§

impl OptionIntoWasmAbi for SharedArrayBuffer

Source§

impl OptionIntoWasmAbi for Symbol

Source§

impl OptionIntoWasmAbi for SyntaxError

Source§

impl OptionIntoWasmAbi for TypeError

Source§

impl OptionIntoWasmAbi for Uint8Array

Source§

impl OptionIntoWasmAbi for Uint8ClampedArray

Source§

impl OptionIntoWasmAbi for Uint16Array

Source§

impl OptionIntoWasmAbi for Uint32Array

Source§

impl OptionIntoWasmAbi for UriError

Source§

impl OptionIntoWasmAbi for WeakMap

Source§

impl OptionIntoWasmAbi for WeakSet

Source§

impl<'a> OptionIntoWasmAbi for &'a Collator

Source§

impl<'a> OptionIntoWasmAbi for &'a DateTimeFormat

Source§

impl<'a> OptionIntoWasmAbi for &'a NumberFormat

Source§

impl<'a> OptionIntoWasmAbi for &'a PluralRules

Source§

impl<'a> OptionIntoWasmAbi for &'a RelativeTimeFormat

Source§

impl<'a> OptionIntoWasmAbi for &'a CompileError

Source§

impl<'a> OptionIntoWasmAbi for &'a Exception

Source§

impl<'a> OptionIntoWasmAbi for &'a Global

Source§

impl<'a> OptionIntoWasmAbi for &'a Instance

Source§

impl<'a> OptionIntoWasmAbi for &'a LinkError

Source§

impl<'a> OptionIntoWasmAbi for &'a Memory

Source§

impl<'a> OptionIntoWasmAbi for &'a Module

Source§

impl<'a> OptionIntoWasmAbi for &'a RuntimeError

Source§

impl<'a> OptionIntoWasmAbi for &'a Table

Source§

impl<'a> OptionIntoWasmAbi for &'a Tag

Source§

impl<'a> OptionIntoWasmAbi for &'a Array

Source§

impl<'a> OptionIntoWasmAbi for &'a ArrayBuffer

Source§

impl<'a> OptionIntoWasmAbi for &'a AsyncIterator

Source§

impl<'a> OptionIntoWasmAbi for &'a BigInt64Array

Source§

impl<'a> OptionIntoWasmAbi for &'a BigInt

Source§

impl<'a> OptionIntoWasmAbi for &'a BigUint64Array

Source§

impl<'a> OptionIntoWasmAbi for &'a Boolean

Source§

impl<'a> OptionIntoWasmAbi for &'a DataView

Source§

impl<'a> OptionIntoWasmAbi for &'a Date

Source§

impl<'a> OptionIntoWasmAbi for &'a Error

Source§

impl<'a> OptionIntoWasmAbi for &'a EvalError

Source§

impl<'a> OptionIntoWasmAbi for &'a Float32Array

Source§

impl<'a> OptionIntoWasmAbi for &'a Float64Array

Source§

impl<'a> OptionIntoWasmAbi for &'a Function

Source§

impl<'a> OptionIntoWasmAbi for &'a Generator

Source§

impl<'a> OptionIntoWasmAbi for &'a Int8Array

Source§

impl<'a> OptionIntoWasmAbi for &'a Int16Array

Source§

impl<'a> OptionIntoWasmAbi for &'a Int32Array

Source§

impl<'a> OptionIntoWasmAbi for &'a Iterator

Source§

impl<'a> OptionIntoWasmAbi for &'a IteratorNext

Source§

impl<'a> OptionIntoWasmAbi for &'a JsString

Source§

impl<'a> OptionIntoWasmAbi for &'a Map

Source§

impl<'a> OptionIntoWasmAbi for &'a Number

Source§

impl<'a> OptionIntoWasmAbi for &'a Object

Source§

impl<'a> OptionIntoWasmAbi for &'a Promise

Source§

impl<'a> OptionIntoWasmAbi for &'a Proxy

Source§

impl<'a> OptionIntoWasmAbi for &'a RangeError

Source§

impl<'a> OptionIntoWasmAbi for &'a ReferenceError

Source§

impl<'a> OptionIntoWasmAbi for &'a RegExp

Source§

impl<'a> OptionIntoWasmAbi for &'a Set

Source§

impl<'a> OptionIntoWasmAbi for &'a SharedArrayBuffer

Source§

impl<'a> OptionIntoWasmAbi for &'a Symbol

Source§

impl<'a> OptionIntoWasmAbi for &'a SyntaxError

Source§

impl<'a> OptionIntoWasmAbi for &'a TypeError

Source§

impl<'a> OptionIntoWasmAbi for &'a Uint8Array

Source§

impl<'a> OptionIntoWasmAbi for &'a Uint8ClampedArray

Source§

impl<'a> OptionIntoWasmAbi for &'a Uint16Array

Source§

impl<'a> OptionIntoWasmAbi for &'a Uint32Array

Source§

impl<'a> OptionIntoWasmAbi for &'a UriError

Source§

impl<'a> OptionIntoWasmAbi for &'a WeakMap

Source§

impl<'a> OptionIntoWasmAbi for &'a WeakSet

Source§

impl<T> OptionIntoWasmAbi for &Closure<T>
where T: WasmClosure + ?Sized,

Source§

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

Source§

impl<T> OptionIntoWasmAbi for NonNull<T>

Source§

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