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>.

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.

Object Safety§

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<'a> OptionIntoWasmAbi for &'a str

source§

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

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>,

Implementors§

source§

impl OptionIntoWasmAbi for ScrollBehavior

source§

impl OptionIntoWasmAbi for ScrollLogicalPosition

source§

impl OptionIntoWasmAbi for ShadowRootMode

source§

impl OptionIntoWasmAbi for AnimationEvent

source§

impl OptionIntoWasmAbi for FocusEvent

source§

impl OptionIntoWasmAbi for HashChangeEvent

source§

impl OptionIntoWasmAbi for KeyboardEvent

source§

impl OptionIntoWasmAbi for MouseEvent

source§

impl OptionIntoWasmAbi for Selection

source§

impl OptionIntoWasmAbi for TouchEvent

source§

impl OptionIntoWasmAbi for TransitionEvent

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 OptionIntoWasmAbi for Attr

source§

impl OptionIntoWasmAbi for CharacterData

source§

impl OptionIntoWasmAbi for ClipboardEvent

source§

impl OptionIntoWasmAbi for Comment

source§

impl OptionIntoWasmAbi for CustomElementRegistry

source§

impl OptionIntoWasmAbi for Document

source§

impl OptionIntoWasmAbi for DocumentFragment

source§

impl OptionIntoWasmAbi for Element

source§

impl OptionIntoWasmAbi for Event

source§

impl OptionIntoWasmAbi for EventInit

source§

impl OptionIntoWasmAbi for EventTarget

source§

impl OptionIntoWasmAbi for Headers

source§

impl OptionIntoWasmAbi for History

source§

impl OptionIntoWasmAbi for HtmlButtonElement

source§

impl OptionIntoWasmAbi for HtmlCollection

source§

impl OptionIntoWasmAbi for HtmlDataElement

source§

impl OptionIntoWasmAbi for HtmlDetailsElement

source§

impl OptionIntoWasmAbi for HtmlDocument

source§

impl OptionIntoWasmAbi for HtmlElement

source§

impl OptionIntoWasmAbi for HtmlFieldSetElement

source§

impl OptionIntoWasmAbi for HtmlHeadElement

source§

impl OptionIntoWasmAbi for HtmlInputElement

source§

impl OptionIntoWasmAbi for HtmlLiElement

source§

impl OptionIntoWasmAbi for HtmlLinkElement

source§

impl OptionIntoWasmAbi for HtmlMeterElement

source§

impl OptionIntoWasmAbi for HtmlOptGroupElement

source§

impl OptionIntoWasmAbi for HtmlOptionElement

source§

impl OptionIntoWasmAbi for HtmlOutputElement

source§

impl OptionIntoWasmAbi for HtmlParamElement

source§

impl OptionIntoWasmAbi for HtmlProgressElement

source§

impl OptionIntoWasmAbi for HtmlSelectElement

source§

impl OptionIntoWasmAbi for HtmlStyleElement

source§

impl OptionIntoWasmAbi for HtmlTextAreaElement

source§

impl OptionIntoWasmAbi for IdleDeadline

source§

impl OptionIntoWasmAbi for InputEvent

source§

impl OptionIntoWasmAbi for Location

source§

impl OptionIntoWasmAbi for NamedNodeMap

source§

impl OptionIntoWasmAbi for Navigator

source§

impl OptionIntoWasmAbi for Node

source§

impl OptionIntoWasmAbi for NodeList

source§

impl OptionIntoWasmAbi for Performance

source§

impl OptionIntoWasmAbi for PopStateEvent

source§

impl OptionIntoWasmAbi for ReadableStream

source§

impl OptionIntoWasmAbi for RequestInit

source§

impl OptionIntoWasmAbi for Response

source§

impl OptionIntoWasmAbi for ScrollIntoViewOptions

source§

impl OptionIntoWasmAbi for ScrollToOptions

source§

impl OptionIntoWasmAbi for ShadowRoot

source§

impl OptionIntoWasmAbi for ShadowRootInit

source§

impl OptionIntoWasmAbi for Storage

source§

impl OptionIntoWasmAbi for Text

source§

impl OptionIntoWasmAbi for Touch

source§

impl OptionIntoWasmAbi for TouchList

source§

impl OptionIntoWasmAbi for UiEvent

source§

impl OptionIntoWasmAbi for Window

source§

impl<'a> OptionIntoWasmAbi for &'a AnimationEvent

source§

impl<'a> OptionIntoWasmAbi for &'a FocusEvent

source§

impl<'a> OptionIntoWasmAbi for &'a HashChangeEvent

source§

impl<'a> OptionIntoWasmAbi for &'a KeyboardEvent

source§

impl<'a> OptionIntoWasmAbi for &'a MouseEvent

source§

impl<'a> OptionIntoWasmAbi for &'a Selection

source§

impl<'a> OptionIntoWasmAbi for &'a TouchEvent

source§

impl<'a> OptionIntoWasmAbi for &'a TransitionEvent

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> OptionIntoWasmAbi for &'a Attr

source§

impl<'a> OptionIntoWasmAbi for &'a CharacterData

source§

impl<'a> OptionIntoWasmAbi for &'a ClipboardEvent

source§

impl<'a> OptionIntoWasmAbi for &'a Comment

source§

impl<'a> OptionIntoWasmAbi for &'a CustomElementRegistry

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 Event

source§

impl<'a> OptionIntoWasmAbi for &'a EventInit

source§

impl<'a> OptionIntoWasmAbi for &'a EventTarget

source§

impl<'a> OptionIntoWasmAbi for &'a Headers

source§

impl<'a> OptionIntoWasmAbi for &'a History

source§

impl<'a> OptionIntoWasmAbi for &'a HtmlButtonElement

source§

impl<'a> OptionIntoWasmAbi for &'a HtmlCollection

source§

impl<'a> OptionIntoWasmAbi for &'a HtmlDataElement

source§

impl<'a> OptionIntoWasmAbi for &'a HtmlDetailsElement

source§

impl<'a> OptionIntoWasmAbi for &'a HtmlDocument

source§

impl<'a> OptionIntoWasmAbi for &'a HtmlElement

source§

impl<'a> OptionIntoWasmAbi for &'a HtmlFieldSetElement

source§

impl<'a> OptionIntoWasmAbi for &'a HtmlHeadElement

source§

impl<'a> OptionIntoWasmAbi for &'a HtmlInputElement

source§

impl<'a> OptionIntoWasmAbi for &'a HtmlLiElement

source§

impl<'a> OptionIntoWasmAbi for &'a HtmlLinkElement

source§

impl<'a> OptionIntoWasmAbi for &'a HtmlMeterElement

source§

impl<'a> OptionIntoWasmAbi for &'a HtmlOptGroupElement

source§

impl<'a> OptionIntoWasmAbi for &'a HtmlOptionElement

source§

impl<'a> OptionIntoWasmAbi for &'a HtmlOutputElement

source§

impl<'a> OptionIntoWasmAbi for &'a HtmlParamElement

source§

impl<'a> OptionIntoWasmAbi for &'a HtmlProgressElement

source§

impl<'a> OptionIntoWasmAbi for &'a HtmlSelectElement

source§

impl<'a> OptionIntoWasmAbi for &'a HtmlStyleElement

source§

impl<'a> OptionIntoWasmAbi for &'a HtmlTextAreaElement

source§

impl<'a> OptionIntoWasmAbi for &'a IdleDeadline

source§

impl<'a> OptionIntoWasmAbi for &'a InputEvent

source§

impl<'a> OptionIntoWasmAbi for &'a Location

source§

impl<'a> OptionIntoWasmAbi for &'a NamedNodeMap

source§

impl<'a> OptionIntoWasmAbi for &'a Navigator

source§

impl<'a> OptionIntoWasmAbi for &'a Node

source§

impl<'a> OptionIntoWasmAbi for &'a NodeList

source§

impl<'a> OptionIntoWasmAbi for &'a Performance

source§

impl<'a> OptionIntoWasmAbi for &'a PopStateEvent

source§

impl<'a> OptionIntoWasmAbi for &'a ReadableStream

source§

impl<'a> OptionIntoWasmAbi for &'a RequestInit

source§

impl<'a> OptionIntoWasmAbi for &'a Response

source§

impl<'a> OptionIntoWasmAbi for &'a ScrollIntoViewOptions

source§

impl<'a> OptionIntoWasmAbi for &'a ScrollToOptions

source§

impl<'a> OptionIntoWasmAbi for &'a ShadowRoot

source§

impl<'a> OptionIntoWasmAbi for &'a ShadowRootInit

source§

impl<'a> OptionIntoWasmAbi for &'a Storage

source§

impl<'a> OptionIntoWasmAbi for &'a Text

source§

impl<'a> OptionIntoWasmAbi for &'a Touch

source§

impl<'a> OptionIntoWasmAbi for &'a TouchList

source§

impl<'a> OptionIntoWasmAbi for &'a UiEvent

source§

impl<'a> OptionIntoWasmAbi for &'a Window

source§

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