sycamore::web::js_sys::wasm_bindgen::convert

Trait OptionIntoWasmAbi

source
pub trait OptionIntoWasmAbi: IntoWasmAbi {
    // Required method
    fn none() -> Self::Abi;
}
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 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 OptionIntoWasmAbi for String

source§

impl OptionIntoWasmAbi for CharacterData

source§

impl OptionIntoWasmAbi for Comment

source§

impl OptionIntoWasmAbi for Document

source§

impl OptionIntoWasmAbi for DocumentFragment

source§

impl OptionIntoWasmAbi for Element

source§

impl OptionIntoWasmAbi for EventListener

source§

impl OptionIntoWasmAbi for EventTarget

source§

impl OptionIntoWasmAbi for HtmlElement

source§

impl OptionIntoWasmAbi for Node

source§

impl OptionIntoWasmAbi for NodeList

source§

impl OptionIntoWasmAbi for Text

source§

impl OptionIntoWasmAbi for Window

source§

impl<'a> OptionIntoWasmAbi for &'a str

source§

fn none() -> <&'a str as IntoWasmAbi>::Abi

source§

impl<'a> OptionIntoWasmAbi for &'a CharacterData

source§

impl<'a> OptionIntoWasmAbi for &'a Comment

source§

impl<'a> OptionIntoWasmAbi for &'a Document

source§

impl<'a> OptionIntoWasmAbi for &'a DocumentFragment

source§

impl<'a> OptionIntoWasmAbi for &'a Element

source§

impl<'a> OptionIntoWasmAbi for &'a EventListener

source§

impl<'a> OptionIntoWasmAbi for &'a EventTarget

source§

impl<'a> OptionIntoWasmAbi for &'a HtmlElement

source§

impl<'a> OptionIntoWasmAbi for &'a Node

source§

fn none() -> <&'a Node as IntoWasmAbi>::Abi

source§

impl<'a> OptionIntoWasmAbi for &'a NodeList

source§

impl<'a> OptionIntoWasmAbi for &'a Text

source§

fn none() -> <&'a Text as IntoWasmAbi>::Abi

source§

impl<'a> OptionIntoWasmAbi for &'a Window

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 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<T> OptionIntoWasmAbi for Box<[T]>
where Box<[T]>: IntoWasmAbi<Abi = WasmSlice>,

source§

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

source§

impl<T> OptionIntoWasmAbi for NonNull<T>

Implementors§

source§

impl OptionIntoWasmAbi for AnimationEvent

source§

impl OptionIntoWasmAbi for BeforeUnloadEvent

source§

impl OptionIntoWasmAbi for CompositionEvent

source§

impl OptionIntoWasmAbi for DeviceMotionEvent

source§

impl OptionIntoWasmAbi for DeviceOrientationEvent

source§

impl OptionIntoWasmAbi for DragEvent

source§

impl OptionIntoWasmAbi for ErrorEvent

source§

impl OptionIntoWasmAbi for Event

source§

impl OptionIntoWasmAbi for FocusEvent

source§

impl OptionIntoWasmAbi for GamepadEvent

source§

impl OptionIntoWasmAbi for HashChangeEvent

source§

impl OptionIntoWasmAbi for InputEvent

source§

impl OptionIntoWasmAbi for KeyboardEvent

source§

impl OptionIntoWasmAbi for MessageEvent

source§

impl OptionIntoWasmAbi for MouseEvent

source§

impl OptionIntoWasmAbi for PageTransitionEvent

source§

impl OptionIntoWasmAbi for PointerEvent

source§

impl OptionIntoWasmAbi for PopStateEvent

source§

impl OptionIntoWasmAbi for ProgressEvent

source§

impl OptionIntoWasmAbi for PromiseRejectionEvent

source§

impl OptionIntoWasmAbi for SecurityPolicyViolationEvent

source§

impl OptionIntoWasmAbi for StorageEvent

source§

impl OptionIntoWasmAbi for SubmitEvent

source§

impl OptionIntoWasmAbi for TouchEvent

source§

impl OptionIntoWasmAbi for TransitionEvent

source§

impl OptionIntoWasmAbi for UiEvent

source§

impl OptionIntoWasmAbi for WheelEvent

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 AnimationEvent

source§

impl<'a> OptionIntoWasmAbi for &'a BeforeUnloadEvent

source§

impl<'a> OptionIntoWasmAbi for &'a CompositionEvent

source§

impl<'a> OptionIntoWasmAbi for &'a DeviceMotionEvent

source§

impl<'a> OptionIntoWasmAbi for &'a DeviceOrientationEvent

source§

impl<'a> OptionIntoWasmAbi for &'a DragEvent

source§

impl<'a> OptionIntoWasmAbi for &'a ErrorEvent

source§

impl<'a> OptionIntoWasmAbi for &'a Event

source§

impl<'a> OptionIntoWasmAbi for &'a FocusEvent

source§

impl<'a> OptionIntoWasmAbi for &'a GamepadEvent

source§

impl<'a> OptionIntoWasmAbi for &'a HashChangeEvent

source§

impl<'a> OptionIntoWasmAbi for &'a InputEvent

source§

impl<'a> OptionIntoWasmAbi for &'a KeyboardEvent

source§

impl<'a> OptionIntoWasmAbi for &'a MessageEvent

source§

impl<'a> OptionIntoWasmAbi for &'a MouseEvent

source§

impl<'a> OptionIntoWasmAbi for &'a PageTransitionEvent

source§

impl<'a> OptionIntoWasmAbi for &'a PointerEvent

source§

impl<'a> OptionIntoWasmAbi for &'a PopStateEvent

source§

impl<'a> OptionIntoWasmAbi for &'a ProgressEvent

source§

impl<'a> OptionIntoWasmAbi for &'a PromiseRejectionEvent

source§

impl<'a> OptionIntoWasmAbi for &'a SecurityPolicyViolationEvent

source§

impl<'a> OptionIntoWasmAbi for &'a StorageEvent

source§

impl<'a> OptionIntoWasmAbi for &'a SubmitEvent

source§

impl<'a> OptionIntoWasmAbi for &'a TouchEvent

source§

impl<'a> OptionIntoWasmAbi for &'a TransitionEvent

source§

impl<'a> OptionIntoWasmAbi for &'a UiEvent

source§

impl<'a> OptionIntoWasmAbi for &'a WheelEvent

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<'a, T> OptionIntoWasmAbi for &'a Closure<T>
where T: WasmClosure + ?Sized,