wasm_bindgen::convert

Trait VectorFromWasmAbi

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

    // Required method
    unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>;
}
Expand description

Trait for element types to implement FromWasmAbi 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

unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>

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

Source§

impl VectorFromWasmAbi for f64

Source§

impl VectorFromWasmAbi for i8

Source§

impl VectorFromWasmAbi for i16

Source§

impl VectorFromWasmAbi for i32

Source§

impl VectorFromWasmAbi for i64

Source§

impl VectorFromWasmAbi for isize

Source§

impl VectorFromWasmAbi for u8

Source§

impl VectorFromWasmAbi for u16

Source§

impl VectorFromWasmAbi for u32

Source§

impl VectorFromWasmAbi for u64

Source§

impl VectorFromWasmAbi for usize

Source§

impl VectorFromWasmAbi for String

Source§

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

Source§

unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>

Implementors§