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.

Required Associated Types§

Required Methods§

source

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

Object Safety§

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

§

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

source§

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

Implementors§

source§

impl VectorFromWasmAbi for JsValue

source§

impl<T> VectorFromWasmAbi for T
where T: JsObject,