wasm_bindgen::convert

Trait VectorIntoWasmAbi

Source
pub trait VectorIntoWasmAbi: WasmDescribeVector + Sized {
    type Abi: WasmAbi;

    // Required method
    fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi;
}
Expand description

Trait for element types to implement IntoWasmAbi for vectors of themselves.

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

Required Methods§

Source

fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi

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 VectorIntoWasmAbi for f32

Source§

impl VectorIntoWasmAbi for f64

Source§

impl VectorIntoWasmAbi for i8

Source§

impl VectorIntoWasmAbi for i16

Source§

impl VectorIntoWasmAbi for i32

Source§

impl VectorIntoWasmAbi for i64

Source§

impl VectorIntoWasmAbi for isize

Source§

impl VectorIntoWasmAbi for u8

Source§

impl VectorIntoWasmAbi for u16

Source§

impl VectorIntoWasmAbi for u32

Source§

impl VectorIntoWasmAbi for u64

Source§

impl VectorIntoWasmAbi for usize

Source§

impl VectorIntoWasmAbi for String

Source§

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

Source§

fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi

Source§

impl VectorIntoWasmAbi for MaybeUninit<f32>

Source§

impl VectorIntoWasmAbi for MaybeUninit<f64>

Source§

impl VectorIntoWasmAbi for MaybeUninit<i8>

Source§

impl VectorIntoWasmAbi for MaybeUninit<i16>

Source§

impl VectorIntoWasmAbi for MaybeUninit<i32>

Source§

impl VectorIntoWasmAbi for MaybeUninit<i64>

Source§

impl VectorIntoWasmAbi for MaybeUninit<isize>

Source§

impl VectorIntoWasmAbi for MaybeUninit<u8>

Source§

impl VectorIntoWasmAbi for MaybeUninit<u16>

Source§

impl VectorIntoWasmAbi for MaybeUninit<u32>

Source§

impl VectorIntoWasmAbi for MaybeUninit<u64>

Source§

impl VectorIntoWasmAbi for MaybeUninit<usize>

Implementors§