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 &str

Source§

fn none() -> Self::Abi

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§

fn none() -> Self::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 [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>]

Source§

impl<T> OptionIntoWasmAbi for Box<[T]>
where Self: 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<T> OptionIntoWasmAbi for &Closure<T>
where T: WasmClosure + ?Sized,

impl<'a> OptionIntoWasmAbi for &'a Collator

impl<'a> OptionIntoWasmAbi for &'a Exception

impl<'a> OptionIntoWasmAbi for &'a Global

impl<'a> OptionIntoWasmAbi for &'a Instance

impl<'a> OptionIntoWasmAbi for &'a LinkError

impl<'a> OptionIntoWasmAbi for &'a Memory

impl<'a> OptionIntoWasmAbi for &'a Module

impl<'a> OptionIntoWasmAbi for &'a Table

impl<'a> OptionIntoWasmAbi for &'a Tag

impl<'a> OptionIntoWasmAbi for &'a Array

impl<'a> OptionIntoWasmAbi for &'a BigInt

impl<'a> OptionIntoWasmAbi for &'a Boolean

impl<'a> OptionIntoWasmAbi for &'a DataView

impl<'a> OptionIntoWasmAbi for &'a Date

impl<'a> OptionIntoWasmAbi for &'a Error

impl<'a> OptionIntoWasmAbi for &'a EvalError

impl<'a> OptionIntoWasmAbi for &'a Function

impl<'a> OptionIntoWasmAbi for &'a Generator

impl<'a> OptionIntoWasmAbi for &'a Int16Array

impl<'a> OptionIntoWasmAbi for &'a Int32Array

impl<'a> OptionIntoWasmAbi for &'a Int8Array

impl<'a> OptionIntoWasmAbi for &'a Iterator

impl<'a> OptionIntoWasmAbi for &'a JsString

impl<'a> OptionIntoWasmAbi for &'a Map

impl<'a> OptionIntoWasmAbi for &'a Number

impl<'a> OptionIntoWasmAbi for &'a Object

impl<'a> OptionIntoWasmAbi for &'a Promise

impl<'a> OptionIntoWasmAbi for &'a Proxy

impl<'a> OptionIntoWasmAbi for &'a RangeError

impl<'a> OptionIntoWasmAbi for &'a RegExp

impl<'a> OptionIntoWasmAbi for &'a Set

impl<'a> OptionIntoWasmAbi for &'a Symbol

impl<'a> OptionIntoWasmAbi for &'a TypeError

impl<'a> OptionIntoWasmAbi for &'a Uint8Array

impl<'a> OptionIntoWasmAbi for &'a UriError

impl<'a> OptionIntoWasmAbi for &'a WeakMap

impl<'a> OptionIntoWasmAbi for &'a WeakSet

impl<'a> OptionIntoWasmAbi for &'a Algorithm

impl<'a> OptionIntoWasmAbi for &'a Animation

impl<'a> OptionIntoWasmAbi for &'a Attr

impl<'a> OptionIntoWasmAbi for &'a AudioData

impl<'a> OptionIntoWasmAbi for &'a AudioNode

impl<'a> OptionIntoWasmAbi for &'a AudioParam

impl<'a> OptionIntoWasmAbi for &'a AudioTrack

impl<'a> OptionIntoWasmAbi for &'a BarProp

impl<'a> OptionIntoWasmAbi for &'a Blob

impl<'a> OptionIntoWasmAbi for &'a BlobEvent

impl<'a> OptionIntoWasmAbi for &'a Bluetooth

impl<'a> OptionIntoWasmAbi for &'a Cache

impl<'a> OptionIntoWasmAbi for &'a Client

impl<'a> OptionIntoWasmAbi for &'a Clients

impl<'a> OptionIntoWasmAbi for &'a Clipboard

impl<'a> OptionIntoWasmAbi for &'a CloseEvent

impl<'a> OptionIntoWasmAbi for &'a Comment

impl<'a> OptionIntoWasmAbi for &'a Credential

impl<'a> OptionIntoWasmAbi for &'a Crypto

impl<'a> OptionIntoWasmAbi for &'a CryptoKey

impl<'a> OptionIntoWasmAbi for &'a CssRule

impl<'a> OptionIntoWasmAbi for &'a DelayNode

impl<'a> OptionIntoWasmAbi for &'a Directory

impl<'a> OptionIntoWasmAbi for &'a Document

impl<'a> OptionIntoWasmAbi for &'a DomError

impl<'a> OptionIntoWasmAbi for &'a DomMatrix

impl<'a> OptionIntoWasmAbi for &'a DomParser

impl<'a> OptionIntoWasmAbi for &'a DomPoint

impl<'a> OptionIntoWasmAbi for &'a DomQuad

impl<'a> OptionIntoWasmAbi for &'a DomRect

impl<'a> OptionIntoWasmAbi for &'a DomRequest

impl<'a> OptionIntoWasmAbi for &'a DragEvent

impl<'a> OptionIntoWasmAbi for &'a Element

impl<'a> OptionIntoWasmAbi for &'a ErrorEvent

impl<'a> OptionIntoWasmAbi for &'a Event

impl<'a> OptionIntoWasmAbi for &'a EventInit

impl<'a> OptionIntoWasmAbi for &'a Exception

impl<'a> OptionIntoWasmAbi for &'a ExtSRgb

impl<'a> OptionIntoWasmAbi for &'a External

impl<'a> OptionIntoWasmAbi for &'a FetchEvent

impl<'a> OptionIntoWasmAbi for &'a File

impl<'a> OptionIntoWasmAbi for &'a FileList

impl<'a> OptionIntoWasmAbi for &'a FileReader

impl<'a> OptionIntoWasmAbi for &'a FileSystem

impl<'a> OptionIntoWasmAbi for &'a FocusEvent

impl<'a> OptionIntoWasmAbi for &'a FontData

impl<'a> OptionIntoWasmAbi for &'a FontFace

impl<'a> OptionIntoWasmAbi for &'a FormData

impl<'a> OptionIntoWasmAbi for &'a GainNode

impl<'a> OptionIntoWasmAbi for &'a Gamepad

impl<'a> OptionIntoWasmAbi for &'a Gpu

impl<'a> OptionIntoWasmAbi for &'a GpuAdapter

impl<'a> OptionIntoWasmAbi for &'a GpuBuffer

impl<'a> OptionIntoWasmAbi for &'a GpuDevice

impl<'a> OptionIntoWasmAbi for &'a GpuError

impl<'a> OptionIntoWasmAbi for &'a GpuQueue

impl<'a> OptionIntoWasmAbi for &'a GpuSampler

impl<'a> OptionIntoWasmAbi for &'a GpuTexture

impl<'a> OptionIntoWasmAbi for &'a Headers

impl<'a> OptionIntoWasmAbi for &'a Hid

impl<'a> OptionIntoWasmAbi for &'a HidDevice

impl<'a> OptionIntoWasmAbi for &'a History

impl<'a> OptionIntoWasmAbi for &'a HkdfParams

impl<'a> OptionIntoWasmAbi for &'a IdbCursor

impl<'a> OptionIntoWasmAbi for &'a IdbFactory

impl<'a> OptionIntoWasmAbi for &'a IdbIndex

impl<'a> OptionIntoWasmAbi for &'a IdbRequest

impl<'a> OptionIntoWasmAbi for &'a ImageData

impl<'a> OptionIntoWasmAbi for &'a ImageTrack

impl<'a> OptionIntoWasmAbi for &'a InputEvent

impl<'a> OptionIntoWasmAbi for &'a IntlUtils

impl<'a> OptionIntoWasmAbi for &'a JsonWebKey

impl<'a> OptionIntoWasmAbi for &'a KeyEvent

impl<'a> OptionIntoWasmAbi for &'a L10nValue

impl<'a> OptionIntoWasmAbi for &'a LocaleInfo

impl<'a> OptionIntoWasmAbi for &'a Location

impl<'a> OptionIntoWasmAbi for &'a Lock

impl<'a> OptionIntoWasmAbi for &'a LockInfo

impl<'a> OptionIntoWasmAbi for &'a MediaError

impl<'a> OptionIntoWasmAbi for &'a MediaImage

impl<'a> OptionIntoWasmAbi for &'a MediaKeys

impl<'a> OptionIntoWasmAbi for &'a MediaList

impl<'a> OptionIntoWasmAbi for &'a MidiAccess

impl<'a> OptionIntoWasmAbi for &'a MidiInput

impl<'a> OptionIntoWasmAbi for &'a MidiOutput

impl<'a> OptionIntoWasmAbi for &'a MidiPort

impl<'a> OptionIntoWasmAbi for &'a MimeType

impl<'a> OptionIntoWasmAbi for &'a MouseEvent

impl<'a> OptionIntoWasmAbi for &'a MozDebug

impl<'a> OptionIntoWasmAbi for &'a Navigator

impl<'a> OptionIntoWasmAbi for &'a Node

impl<'a> OptionIntoWasmAbi for &'a NodeFilter

impl<'a> OptionIntoWasmAbi for &'a NodeList

impl<'a> OptionIntoWasmAbi for &'a PannerNode

impl<'a> OptionIntoWasmAbi for &'a Path2d

impl<'a> OptionIntoWasmAbi for &'a Plugin

impl<'a> OptionIntoWasmAbi for &'a Position

impl<'a> OptionIntoWasmAbi for &'a PushEvent

impl<'a> OptionIntoWasmAbi for &'a Range

impl<'a> OptionIntoWasmAbi for &'a RcwnStatus

impl<'a> OptionIntoWasmAbi for &'a Request

impl<'a> OptionIntoWasmAbi for &'a Response

impl<'a> OptionIntoWasmAbi for &'a RtcStats

impl<'a> OptionIntoWasmAbi for &'a Scheduler

impl<'a> OptionIntoWasmAbi for &'a Scheduling

impl<'a> OptionIntoWasmAbi for &'a Screen

impl<'a> OptionIntoWasmAbi for &'a Selection

impl<'a> OptionIntoWasmAbi for &'a Serial

impl<'a> OptionIntoWasmAbi for &'a SerialPort

impl<'a> OptionIntoWasmAbi for &'a ShadowRoot

impl<'a> OptionIntoWasmAbi for &'a ShareData

impl<'a> OptionIntoWasmAbi for &'a Storage

impl<'a> OptionIntoWasmAbi for &'a StyleSheet

impl<'a> OptionIntoWasmAbi for &'a SvgAngle

impl<'a> OptionIntoWasmAbi for &'a SvgElement

impl<'a> OptionIntoWasmAbi for &'a SvgLength

impl<'a> OptionIntoWasmAbi for &'a SvgMatrix

impl<'a> OptionIntoWasmAbi for &'a SvgNumber

impl<'a> OptionIntoWasmAbi for &'a SvgPathSeg

impl<'a> OptionIntoWasmAbi for &'a SvgPoint

impl<'a> OptionIntoWasmAbi for &'a SvgRect

impl<'a> OptionIntoWasmAbi for &'a TaskSignal

impl<'a> OptionIntoWasmAbi for &'a TcpSocket

impl<'a> OptionIntoWasmAbi for &'a Text

impl<'a> OptionIntoWasmAbi for &'a TextTrack

impl<'a> OptionIntoWasmAbi for &'a TimeEvent

impl<'a> OptionIntoWasmAbi for &'a TimeRanges

impl<'a> OptionIntoWasmAbi for &'a Touch

impl<'a> OptionIntoWasmAbi for &'a TouchEvent

impl<'a> OptionIntoWasmAbi for &'a TouchInit

impl<'a> OptionIntoWasmAbi for &'a TouchList

impl<'a> OptionIntoWasmAbi for &'a TrackEvent

impl<'a> OptionIntoWasmAbi for &'a TreeView

impl<'a> OptionIntoWasmAbi for &'a TreeWalker

impl<'a> OptionIntoWasmAbi for &'a U2f

impl<'a> OptionIntoWasmAbi for &'a ULongRange

impl<'a> OptionIntoWasmAbi for &'a UdpOptions

impl<'a> OptionIntoWasmAbi for &'a UiEvent

impl<'a> OptionIntoWasmAbi for &'a Url

impl<'a> OptionIntoWasmAbi for &'a Usb

impl<'a> OptionIntoWasmAbi for &'a UsbDevice

impl<'a> OptionIntoWasmAbi for &'a ValueEvent

impl<'a> OptionIntoWasmAbi for &'a VideoFrame

impl<'a> OptionIntoWasmAbi for &'a VideoTrack

impl<'a> OptionIntoWasmAbi for &'a VrDisplay

impl<'a> OptionIntoWasmAbi for &'a VrLayer

impl<'a> OptionIntoWasmAbi for &'a VrPose

impl<'a> OptionIntoWasmAbi for &'a VttCue

impl<'a> OptionIntoWasmAbi for &'a VttRegion

impl<'a> OptionIntoWasmAbi for &'a WakeLock

impl<'a> OptionIntoWasmAbi for &'a WebGlQuery

impl<'a> OptionIntoWasmAbi for &'a WebGlSync

impl<'a> OptionIntoWasmAbi for &'a WebSocket

impl<'a> OptionIntoWasmAbi for &'a WheelEvent

impl<'a> OptionIntoWasmAbi for &'a Window

impl<'a> OptionIntoWasmAbi for &'a Worker

impl<'a> OptionIntoWasmAbi for &'a Worklet

impl<'a> OptionIntoWasmAbi for &'a XrFrame

impl<'a> OptionIntoWasmAbi for &'a XrHand

impl<'a> OptionIntoWasmAbi for &'a XrLayer

impl<'a> OptionIntoWasmAbi for &'a XrPose

impl<'a> OptionIntoWasmAbi for &'a XrSession

impl<'a> OptionIntoWasmAbi for &'a XrSpace

impl<'a> OptionIntoWasmAbi for &'a XrSystem

impl<'a> OptionIntoWasmAbi for &'a XrView

impl<'a> OptionIntoWasmAbi for &'a XrViewport