wasm_bindgen::convert

Trait RefMutFromWasmAbi

source
pub trait RefMutFromWasmAbi: WasmDescribe {
    type Abi: WasmAbi;
    type Anchor: DerefMut<Target = Self>;

    // Required method
    unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor;
}
Expand description

Dual of the RefFromWasmAbi trait, except for mutable references.

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

Same as RefFromWasmAbi::Abi

source

type Anchor: DerefMut<Target = Self>

Same as RefFromWasmAbi::Anchor

Required Methods§

source

unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl RefMutFromWasmAbi for [f32]

source§

type Abi = WasmMutSlice

source§

type Anchor = MutSlice<f32>

source§

unsafe fn ref_mut_from_abi(js: WasmMutSlice) -> MutSlice<f32>

source§

impl RefMutFromWasmAbi for [f64]

source§

type Abi = WasmMutSlice

source§

type Anchor = MutSlice<f64>

source§

unsafe fn ref_mut_from_abi(js: WasmMutSlice) -> MutSlice<f64>

source§

impl RefMutFromWasmAbi for [i8]

source§

type Abi = WasmMutSlice

source§

type Anchor = MutSlice<i8>

source§

unsafe fn ref_mut_from_abi(js: WasmMutSlice) -> MutSlice<i8>

source§

impl RefMutFromWasmAbi for [i16]

source§

type Abi = WasmMutSlice

source§

type Anchor = MutSlice<i16>

source§

unsafe fn ref_mut_from_abi(js: WasmMutSlice) -> MutSlice<i16>

source§

impl RefMutFromWasmAbi for [i32]

source§

type Abi = WasmMutSlice

source§

type Anchor = MutSlice<i32>

source§

unsafe fn ref_mut_from_abi(js: WasmMutSlice) -> MutSlice<i32>

source§

impl RefMutFromWasmAbi for [i64]

source§

type Abi = WasmMutSlice

source§

type Anchor = MutSlice<i64>

source§

unsafe fn ref_mut_from_abi(js: WasmMutSlice) -> MutSlice<i64>

source§

impl RefMutFromWasmAbi for [isize]

source§

type Abi = WasmMutSlice

source§

type Anchor = MutSlice<isize>

source§

unsafe fn ref_mut_from_abi(js: WasmMutSlice) -> MutSlice<isize>

source§

impl RefMutFromWasmAbi for [u8]

source§

type Abi = WasmMutSlice

source§

type Anchor = MutSlice<u8>

source§

unsafe fn ref_mut_from_abi(js: WasmMutSlice) -> MutSlice<u8>

source§

impl RefMutFromWasmAbi for [u16]

source§

type Abi = WasmMutSlice

source§

type Anchor = MutSlice<u16>

source§

unsafe fn ref_mut_from_abi(js: WasmMutSlice) -> MutSlice<u16>

source§

impl RefMutFromWasmAbi for [u32]

source§

type Abi = WasmMutSlice

source§

type Anchor = MutSlice<u32>

source§

unsafe fn ref_mut_from_abi(js: WasmMutSlice) -> MutSlice<u32>

source§

impl RefMutFromWasmAbi for [u64]

source§

type Abi = WasmMutSlice

source§

type Anchor = MutSlice<u64>

source§

unsafe fn ref_mut_from_abi(js: WasmMutSlice) -> MutSlice<u64>

source§

impl RefMutFromWasmAbi for [usize]

source§

type Abi = WasmMutSlice

source§

type Anchor = MutSlice<usize>

source§

unsafe fn ref_mut_from_abi(js: WasmMutSlice) -> MutSlice<usize>

Implementors§