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

Trait IntoWasmAbi

source
pub trait IntoWasmAbi: WasmDescribe {
    type Abi: WasmAbi;

    // Required method
    fn into_abi(self) -> Self::Abi;
}
Expand description

A trait for anything that can be converted into a type that can cross the Wasm ABI directly, eg u32 or f64.

This is the opposite operation as FromWasmAbi and Ref[Mut]FromWasmAbi.

§⚠️ 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 Associated Types§

source

type Abi: WasmAbi

The Wasm ABI type that this converts into when crossing the ABI boundary.

Required Methods§

source

fn into_abi(self) -> Self::Abi

Convert self into Self::Abi so that it can be sent across the wasm ABI boundary.

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 IntoWasmAbi for Option<f32>

source§

impl IntoWasmAbi for Option<f64>

source§

impl IntoWasmAbi for Option<i32>

source§

impl IntoWasmAbi for Option<i64>

source§

impl IntoWasmAbi for Option<isize>

source§

impl IntoWasmAbi for Option<u32>

source§

impl IntoWasmAbi for Option<u64>

source§

impl IntoWasmAbi for Option<usize>

source§

impl IntoWasmAbi for bool

source§

impl IntoWasmAbi for char

source§

impl IntoWasmAbi for f32

source§

impl IntoWasmAbi for f64

source§

impl IntoWasmAbi for i8

source§

impl IntoWasmAbi for i16

source§

impl IntoWasmAbi for i32

source§

impl IntoWasmAbi for i64

source§

impl IntoWasmAbi for isize

source§

impl IntoWasmAbi for u8

source§

impl IntoWasmAbi for u16

source§

impl IntoWasmAbi for u32

source§

impl IntoWasmAbi for u64

source§

impl IntoWasmAbi for ()

source§

impl IntoWasmAbi for usize

source§

impl IntoWasmAbi for String

source§

impl IntoWasmAbi for CharacterData

source§

impl IntoWasmAbi for Comment

source§

impl IntoWasmAbi for Document

source§

impl IntoWasmAbi for DocumentFragment

source§

impl IntoWasmAbi for Element

source§

impl IntoWasmAbi for EventListener

source§

impl IntoWasmAbi for EventTarget

source§

impl IntoWasmAbi for HtmlElement

source§

impl IntoWasmAbi for Node

source§

impl IntoWasmAbi for NodeList

source§

impl IntoWasmAbi for Text

source§

impl IntoWasmAbi for Window

source§

impl<'a> IntoWasmAbi for &'a str

source§

type Abi = <&'a [u8] as IntoWasmAbi>::Abi

source§

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

source§

impl<'a> IntoWasmAbi for &'a CharacterData

source§

impl<'a> IntoWasmAbi for &'a Comment

source§

impl<'a> IntoWasmAbi for &'a Document

source§

impl<'a> IntoWasmAbi for &'a DocumentFragment

source§

impl<'a> IntoWasmAbi for &'a Element

source§

impl<'a> IntoWasmAbi for &'a EventListener

source§

impl<'a> IntoWasmAbi for &'a EventTarget

source§

impl<'a> IntoWasmAbi for &'a HtmlElement

source§

impl<'a> IntoWasmAbi for &'a Node

source§

type Abi = <&'a JsValue as IntoWasmAbi>::Abi

source§

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

source§

impl<'a> IntoWasmAbi for &'a NodeList

source§

impl<'a> IntoWasmAbi for &'a Text

source§

type Abi = <&'a JsValue as IntoWasmAbi>::Abi

source§

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

source§

impl<'a> IntoWasmAbi for &'a Window

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

impl<'a, 'b, A, B, C, D, E, F, G, H, R> IntoWasmAbi for &'a (dyn Fn(A, B, C, D, E, F, G, H) -> R + 'b)

source§

impl<'a, 'b, A, B, C, D, E, F, G, H, R> IntoWasmAbi for &'a mut (dyn FnMut(A, B, C, D, E, F, G, H) -> R + 'b)

source§

impl<'a, 'b, A, B, C, D, E, F, G, R> IntoWasmAbi for &'a (dyn Fn(A, B, C, D, E, F, G) -> R + 'b)

source§

impl<'a, 'b, A, B, C, D, E, F, G, R> IntoWasmAbi for &'a mut (dyn FnMut(A, B, C, D, E, F, G) -> R + 'b)

source§

impl<'a, 'b, A, B, C, D, E, F, R> IntoWasmAbi for &'a (dyn Fn(A, B, C, D, E, F) -> R + 'b)

source§

impl<'a, 'b, A, B, C, D, E, F, R> IntoWasmAbi for &'a mut (dyn FnMut(A, B, C, D, E, F) -> R + 'b)

source§

impl<'a, 'b, A, B, C, D, E, R> IntoWasmAbi for &'a (dyn Fn(A, B, C, D, E) -> R + 'b)

source§

impl<'a, 'b, A, B, C, D, E, R> IntoWasmAbi for &'a mut (dyn FnMut(A, B, C, D, E) -> R + 'b)

source§

impl<'a, 'b, A, B, C, D, R> IntoWasmAbi for &'a (dyn Fn(A, B, C, D) -> R + 'b)

source§

impl<'a, 'b, A, B, C, D, R> IntoWasmAbi for &'a mut (dyn FnMut(A, B, C, D) -> R + 'b)

source§

impl<'a, 'b, A, B, C, R> IntoWasmAbi for &'a (dyn Fn(A, B, C) -> R + 'b)

source§

impl<'a, 'b, A, B, C, R> IntoWasmAbi for &'a mut (dyn FnMut(A, B, C) -> R + 'b)

source§

impl<'a, 'b, A, B, R> IntoWasmAbi for &'a (dyn Fn(A, B) -> R + 'b)

source§

impl<'a, 'b, A, B, R> IntoWasmAbi for &'a mut (dyn FnMut(A, B) -> R + 'b)

source§

impl<'a, 'b, A, R> IntoWasmAbi for &'a (dyn Fn(&A) -> R + 'b)

source§

impl<'a, 'b, A, R> IntoWasmAbi for &'a (dyn Fn(A) -> R + 'b)

source§

impl<'a, 'b, A, R> IntoWasmAbi for &'a mut (dyn FnMut(&A) -> R + 'b)

source§

impl<'a, 'b, A, R> IntoWasmAbi for &'a mut (dyn FnMut(A) -> R + 'b)

source§

impl<'a, 'b, R> IntoWasmAbi for &'a (dyn Fn() -> R + 'b)
where R: ReturnWasmAbi,

source§

impl<'a, 'b, R> IntoWasmAbi for &'a mut (dyn FnMut() -> R + 'b)
where R: ReturnWasmAbi,

source§

impl<T> IntoWasmAbi for Option<*const T>

source§

impl<T> IntoWasmAbi for Option<*mut T>

source§

impl<T> IntoWasmAbi for Option<T>

source§

type Abi = <T as IntoWasmAbi>::Abi

source§

fn into_abi(self) -> <T as IntoWasmAbi>::Abi

source§

impl<T> IntoWasmAbi for *const T

source§

impl<T> IntoWasmAbi for *mut T

source§

impl<T> IntoWasmAbi for Box<[T]>

source§

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

source§

impl<T> IntoWasmAbi for NonNull<T>

Implementors§

source§

impl IntoWasmAbi for AnimationEvent

source§

impl IntoWasmAbi for BeforeUnloadEvent

source§

impl IntoWasmAbi for CompositionEvent

source§

impl IntoWasmAbi for DeviceMotionEvent

source§

impl IntoWasmAbi for DeviceOrientationEvent

source§

impl IntoWasmAbi for DragEvent

source§

impl IntoWasmAbi for ErrorEvent

source§

impl IntoWasmAbi for Event

source§

impl IntoWasmAbi for FocusEvent

source§

impl IntoWasmAbi for GamepadEvent

source§

impl IntoWasmAbi for HashChangeEvent

source§

impl IntoWasmAbi for InputEvent

source§

impl IntoWasmAbi for KeyboardEvent

source§

impl IntoWasmAbi for MessageEvent

source§

impl IntoWasmAbi for MouseEvent

source§

impl IntoWasmAbi for PageTransitionEvent

source§

impl IntoWasmAbi for PointerEvent

source§

impl IntoWasmAbi for PopStateEvent

source§

impl IntoWasmAbi for ProgressEvent

source§

impl IntoWasmAbi for PromiseRejectionEvent

source§

impl IntoWasmAbi for SecurityPolicyViolationEvent

source§

impl IntoWasmAbi for StorageEvent

source§

impl IntoWasmAbi for SubmitEvent

source§

impl IntoWasmAbi for TouchEvent

source§

impl IntoWasmAbi for TransitionEvent

source§

impl IntoWasmAbi for UiEvent

source§

impl IntoWasmAbi for WheelEvent

source§

impl IntoWasmAbi for Collator

source§

impl IntoWasmAbi for DateTimeFormat

source§

impl IntoWasmAbi for NumberFormat

source§

impl IntoWasmAbi for PluralRules

source§

impl IntoWasmAbi for RelativeTimeFormat

source§

impl IntoWasmAbi for CompileError

source§

impl IntoWasmAbi for Exception

source§

impl IntoWasmAbi for Global

source§

impl IntoWasmAbi for Instance

source§

impl IntoWasmAbi for LinkError

source§

impl IntoWasmAbi for Memory

source§

impl IntoWasmAbi for Module

source§

impl IntoWasmAbi for RuntimeError

source§

impl IntoWasmAbi for Table

source§

impl IntoWasmAbi for Tag

source§

impl IntoWasmAbi for Array

source§

impl IntoWasmAbi for ArrayBuffer

source§

impl IntoWasmAbi for AsyncIterator

source§

impl IntoWasmAbi for BigInt64Array

source§

impl IntoWasmAbi for BigInt

source§

impl IntoWasmAbi for BigUint64Array

source§

impl IntoWasmAbi for Boolean

source§

impl IntoWasmAbi for DataView

source§

impl IntoWasmAbi for Date

source§

impl IntoWasmAbi for Error

source§

impl IntoWasmAbi for EvalError

source§

impl IntoWasmAbi for Float32Array

source§

impl IntoWasmAbi for Float64Array

source§

impl IntoWasmAbi for Function

source§

impl IntoWasmAbi for Generator

source§

impl IntoWasmAbi for Int8Array

source§

impl IntoWasmAbi for Int16Array

source§

impl IntoWasmAbi for Int32Array

source§

impl IntoWasmAbi for Iterator

source§

impl IntoWasmAbi for IteratorNext

source§

impl IntoWasmAbi for JsString

source§

impl IntoWasmAbi for Map

source§

impl IntoWasmAbi for Number

source§

impl IntoWasmAbi for Object

source§

impl IntoWasmAbi for Promise

source§

impl IntoWasmAbi for Proxy

source§

impl IntoWasmAbi for RangeError

source§

impl IntoWasmAbi for ReferenceError

source§

impl IntoWasmAbi for RegExp

source§

impl IntoWasmAbi for Set

source§

impl IntoWasmAbi for SharedArrayBuffer

source§

impl IntoWasmAbi for Symbol

source§

impl IntoWasmAbi for SyntaxError

source§

impl IntoWasmAbi for TypeError

source§

impl IntoWasmAbi for Uint8Array

source§

impl IntoWasmAbi for Uint8ClampedArray

source§

impl IntoWasmAbi for Uint16Array

source§

impl IntoWasmAbi for Uint32Array

source§

impl IntoWasmAbi for UriError

source§

impl IntoWasmAbi for WeakMap

source§

impl IntoWasmAbi for WeakSet

source§

impl IntoWasmAbi for JsError

source§

impl IntoWasmAbi for JsValue

source§

impl<'a> IntoWasmAbi for &'a AnimationEvent

source§

impl<'a> IntoWasmAbi for &'a BeforeUnloadEvent

source§

impl<'a> IntoWasmAbi for &'a CompositionEvent

source§

impl<'a> IntoWasmAbi for &'a DeviceMotionEvent

source§

impl<'a> IntoWasmAbi for &'a DeviceOrientationEvent

source§

impl<'a> IntoWasmAbi for &'a DragEvent

source§

impl<'a> IntoWasmAbi for &'a ErrorEvent

source§

impl<'a> IntoWasmAbi for &'a Event

source§

impl<'a> IntoWasmAbi for &'a FocusEvent

source§

impl<'a> IntoWasmAbi for &'a GamepadEvent

source§

impl<'a> IntoWasmAbi for &'a HashChangeEvent

source§

impl<'a> IntoWasmAbi for &'a InputEvent

source§

impl<'a> IntoWasmAbi for &'a KeyboardEvent

source§

impl<'a> IntoWasmAbi for &'a MessageEvent

source§

impl<'a> IntoWasmAbi for &'a MouseEvent

source§

impl<'a> IntoWasmAbi for &'a PageTransitionEvent

source§

impl<'a> IntoWasmAbi for &'a PointerEvent

source§

impl<'a> IntoWasmAbi for &'a PopStateEvent

source§

impl<'a> IntoWasmAbi for &'a ProgressEvent

source§

impl<'a> IntoWasmAbi for &'a PromiseRejectionEvent

source§

impl<'a> IntoWasmAbi for &'a SecurityPolicyViolationEvent

source§

impl<'a> IntoWasmAbi for &'a StorageEvent

source§

impl<'a> IntoWasmAbi for &'a SubmitEvent

source§

impl<'a> IntoWasmAbi for &'a TouchEvent

source§

impl<'a> IntoWasmAbi for &'a TransitionEvent

source§

impl<'a> IntoWasmAbi for &'a UiEvent

source§

impl<'a> IntoWasmAbi for &'a WheelEvent

source§

impl<'a> IntoWasmAbi for &'a Collator

source§

impl<'a> IntoWasmAbi for &'a DateTimeFormat

source§

impl<'a> IntoWasmAbi for &'a NumberFormat

source§

impl<'a> IntoWasmAbi for &'a PluralRules

source§

impl<'a> IntoWasmAbi for &'a RelativeTimeFormat

source§

impl<'a> IntoWasmAbi for &'a CompileError

source§

impl<'a> IntoWasmAbi for &'a Exception

source§

impl<'a> IntoWasmAbi for &'a Global

source§

impl<'a> IntoWasmAbi for &'a Instance

source§

impl<'a> IntoWasmAbi for &'a LinkError

source§

impl<'a> IntoWasmAbi for &'a Memory

source§

impl<'a> IntoWasmAbi for &'a Module

source§

impl<'a> IntoWasmAbi for &'a RuntimeError

source§

impl<'a> IntoWasmAbi for &'a Table

source§

impl<'a> IntoWasmAbi for &'a Tag

source§

impl<'a> IntoWasmAbi for &'a Array

source§

impl<'a> IntoWasmAbi for &'a ArrayBuffer

source§

impl<'a> IntoWasmAbi for &'a AsyncIterator

source§

impl<'a> IntoWasmAbi for &'a BigInt64Array

source§

impl<'a> IntoWasmAbi for &'a BigInt

source§

impl<'a> IntoWasmAbi for &'a BigUint64Array

source§

impl<'a> IntoWasmAbi for &'a Boolean

source§

impl<'a> IntoWasmAbi for &'a DataView

source§

impl<'a> IntoWasmAbi for &'a Date

source§

impl<'a> IntoWasmAbi for &'a Error

source§

impl<'a> IntoWasmAbi for &'a EvalError

source§

impl<'a> IntoWasmAbi for &'a Float32Array

source§

impl<'a> IntoWasmAbi for &'a Float64Array

source§

impl<'a> IntoWasmAbi for &'a Function

source§

impl<'a> IntoWasmAbi for &'a Generator

source§

impl<'a> IntoWasmAbi for &'a Int8Array

source§

impl<'a> IntoWasmAbi for &'a Int16Array

source§

impl<'a> IntoWasmAbi for &'a Int32Array

source§

impl<'a> IntoWasmAbi for &'a Iterator

source§

impl<'a> IntoWasmAbi for &'a IteratorNext

source§

impl<'a> IntoWasmAbi for &'a JsString

source§

impl<'a> IntoWasmAbi for &'a Map

source§

impl<'a> IntoWasmAbi for &'a Number

source§

impl<'a> IntoWasmAbi for &'a Object

source§

impl<'a> IntoWasmAbi for &'a Promise

source§

impl<'a> IntoWasmAbi for &'a Proxy

source§

impl<'a> IntoWasmAbi for &'a RangeError

source§

impl<'a> IntoWasmAbi for &'a ReferenceError

source§

impl<'a> IntoWasmAbi for &'a RegExp

source§

impl<'a> IntoWasmAbi for &'a Set

source§

impl<'a> IntoWasmAbi for &'a SharedArrayBuffer

source§

impl<'a> IntoWasmAbi for &'a Symbol

source§

impl<'a> IntoWasmAbi for &'a SyntaxError

source§

impl<'a> IntoWasmAbi for &'a TypeError

source§

impl<'a> IntoWasmAbi for &'a Uint8Array

source§

impl<'a> IntoWasmAbi for &'a Uint8ClampedArray

source§

impl<'a> IntoWasmAbi for &'a Uint16Array

source§

impl<'a> IntoWasmAbi for &'a Uint32Array

source§

impl<'a> IntoWasmAbi for &'a UriError

source§

impl<'a> IntoWasmAbi for &'a WeakMap

source§

impl<'a> IntoWasmAbi for &'a WeakSet

source§

impl<'a> IntoWasmAbi for &'a JsValue

source§

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

source§

impl<T> IntoWasmAbi for Clamped<T>
where T: IntoWasmAbi,

source§

type Abi = <T as IntoWasmAbi>::Abi