Trait wasm_bindgen::convert::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.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl IntoWasmAbi for Option<f32>

§

type Abi = Option<f32>

source§

fn into_abi(self) -> Self::Abi

source§

impl IntoWasmAbi for Option<f64>

§

type Abi = Option<f64>

source§

fn into_abi(self) -> Self::Abi

source§

impl IntoWasmAbi for Option<i32>

§

type Abi = Option<i32>

source§

fn into_abi(self) -> Self::Abi

source§

impl IntoWasmAbi for Option<i64>

§

type Abi = Option<i64>

source§

fn into_abi(self) -> Self::Abi

source§

impl IntoWasmAbi for Option<isize>

§

type Abi = Option<i32>

source§

fn into_abi(self) -> Self::Abi

source§

impl IntoWasmAbi for Option<u32>

§

type Abi = Option<u32>

source§

fn into_abi(self) -> Self::Abi

source§

impl IntoWasmAbi for Option<u64>

§

type Abi = Option<u64>

source§

fn into_abi(self) -> Self::Abi

source§

impl IntoWasmAbi for Option<usize>

§

type Abi = Option<u32>

source§

fn into_abi(self) -> Self::Abi

source§

impl IntoWasmAbi for bool

§

type Abi = u32

source§

fn into_abi(self) -> u32

source§

impl IntoWasmAbi for char

§

type Abi = u32

source§

fn into_abi(self) -> u32

source§

impl IntoWasmAbi for f32

§

type Abi = f32

source§

fn into_abi(self) -> f32

source§

impl IntoWasmAbi for f64

§

type Abi = f64

source§

fn into_abi(self) -> f64

source§

impl IntoWasmAbi for i8

§

type Abi = u32

source§

fn into_abi(self) -> u32

source§

impl IntoWasmAbi for i16

§

type Abi = u32

source§

fn into_abi(self) -> u32

source§

impl IntoWasmAbi for i32

§

type Abi = i32

source§

fn into_abi(self) -> i32

source§

impl IntoWasmAbi for i64

§

type Abi = i64

source§

fn into_abi(self) -> i64

source§

impl IntoWasmAbi for isize

§

type Abi = i32

source§

fn into_abi(self) -> i32

source§

impl IntoWasmAbi for u8

§

type Abi = u32

source§

fn into_abi(self) -> u32

source§

impl IntoWasmAbi for u16

§

type Abi = u32

source§

fn into_abi(self) -> u32

source§

impl IntoWasmAbi for u32

§

type Abi = u32

source§

fn into_abi(self) -> u32

source§

impl IntoWasmAbi for u64

§

type Abi = u64

source§

fn into_abi(self) -> u64

source§

impl IntoWasmAbi for ()

§

type Abi = ()

source§

fn into_abi(self)

source§

impl IntoWasmAbi for usize

§

type Abi = u32

source§

fn into_abi(self) -> u32

source§

impl IntoWasmAbi for String

§

type Abi = <Vec<u8> as IntoWasmAbi>::Abi

source§

fn into_abi(self) -> Self::Abi

source§

impl<'a> IntoWasmAbi for &'a str

§

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

source§

fn into_abi(self) -> Self::Abi

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 *const T

§

type Abi = u32

source§

fn into_abi(self) -> u32

source§

impl<T> IntoWasmAbi for *mut T

§

type Abi = u32

source§

fn into_abi(self) -> u32

source§

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

§

type Abi = <Box<[T]> as IntoWasmAbi>::Abi

source§

fn into_abi(self) -> Self::Abi

source§

impl<T> IntoWasmAbi for NonNull<T>

§

type Abi = u32

source§

fn into_abi(self) -> u32

source§

impl<T: OptionIntoWasmAbi> IntoWasmAbi for Option<T>

§

type Abi = <T as IntoWasmAbi>::Abi

source§

fn into_abi(self) -> T::Abi

source§

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

§

type Abi = <T as VectorIntoWasmAbi>::Abi

source§

fn into_abi(self) -> Self::Abi

Implementors§

source§

impl IntoWasmAbi for JsError

source§

impl IntoWasmAbi for JsValue

§

type Abi = u32

source§

impl<'a> IntoWasmAbi for &'a JsValue

§

type Abi = u32

source§

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

§

type Abi = u32

source§

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

§

type Abi = <T as IntoWasmAbi>::Abi

impl IntoWasmAbi for Tag

impl IntoWasmAbi for Date

impl IntoWasmAbi for Map

impl IntoWasmAbi for Set

impl<'a> IntoWasmAbi for &'a Collator

impl<'a> IntoWasmAbi for &'a DateTimeFormat

impl<'a> IntoWasmAbi for &'a NumberFormat

impl<'a> IntoWasmAbi for &'a PluralRules

impl<'a> IntoWasmAbi for &'a CompileError

impl<'a> IntoWasmAbi for &'a Exception

impl<'a> IntoWasmAbi for &'a Global

impl<'a> IntoWasmAbi for &'a Instance

impl<'a> IntoWasmAbi for &'a LinkError

impl<'a> IntoWasmAbi for &'a Memory

impl<'a> IntoWasmAbi for &'a Module

impl<'a> IntoWasmAbi for &'a RuntimeError

impl<'a> IntoWasmAbi for &'a Table

impl<'a> IntoWasmAbi for &'a Tag

impl<'a> IntoWasmAbi for &'a Array

impl<'a> IntoWasmAbi for &'a ArrayBuffer

impl<'a> IntoWasmAbi for &'a AsyncIterator

impl<'a> IntoWasmAbi for &'a BigInt

impl<'a> IntoWasmAbi for &'a BigInt64Array

impl<'a> IntoWasmAbi for &'a BigUint64Array

impl<'a> IntoWasmAbi for &'a Boolean

impl<'a> IntoWasmAbi for &'a DataView

impl<'a> IntoWasmAbi for &'a Date

impl<'a> IntoWasmAbi for &'a Error

impl<'a> IntoWasmAbi for &'a EvalError

impl<'a> IntoWasmAbi for &'a Float32Array

impl<'a> IntoWasmAbi for &'a Float64Array

impl<'a> IntoWasmAbi for &'a Function

impl<'a> IntoWasmAbi for &'a Generator

impl<'a> IntoWasmAbi for &'a Int16Array

impl<'a> IntoWasmAbi for &'a Int32Array

impl<'a> IntoWasmAbi for &'a Int8Array

impl<'a> IntoWasmAbi for &'a Iterator

impl<'a> IntoWasmAbi for &'a IteratorNext

impl<'a> IntoWasmAbi for &'a JsString

impl<'a> IntoWasmAbi for &'a Map

impl<'a> IntoWasmAbi for &'a Number

impl<'a> IntoWasmAbi for &'a Object

impl<'a> IntoWasmAbi for &'a Promise

impl<'a> IntoWasmAbi for &'a Proxy

impl<'a> IntoWasmAbi for &'a RangeError

impl<'a> IntoWasmAbi for &'a ReferenceError

impl<'a> IntoWasmAbi for &'a RegExp

impl<'a> IntoWasmAbi for &'a Set

impl<'a> IntoWasmAbi for &'a Symbol

impl<'a> IntoWasmAbi for &'a SyntaxError

impl<'a> IntoWasmAbi for &'a TypeError

impl<'a> IntoWasmAbi for &'a Uint16Array

impl<'a> IntoWasmAbi for &'a Uint32Array

impl<'a> IntoWasmAbi for &'a Uint8Array

impl<'a> IntoWasmAbi for &'a UriError

impl<'a> IntoWasmAbi for &'a WeakMap

impl<'a> IntoWasmAbi for &'a WeakSet

impl<'a> IntoWasmAbi for &'a Connection

impl<'a> IntoWasmAbi for &'a ConnectionEvent

impl<'a> IntoWasmAbi for &'a ListenEvent

impl<'a> IntoWasmAbi for &'a Transport