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

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

Dual of the RefFromWasmAbi trait, except for mutable references.

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

Implementations on Foreign Types§

source§

impl RefMutFromWasmAbi for [u8]

§

type Abi = WasmMutSlice

§

type Anchor = MutSlice<u8>

source§

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

source§

impl RefMutFromWasmAbi for [i8]

§

type Abi = WasmMutSlice

§

type Anchor = MutSlice<i8>

source§

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

source§

impl RefMutFromWasmAbi for [u16]

§

type Abi = WasmMutSlice

§

type Anchor = MutSlice<u16>

source§

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

source§

impl RefMutFromWasmAbi for [i16]

§

type Abi = WasmMutSlice

§

type Anchor = MutSlice<i16>

source§

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

source§

impl RefMutFromWasmAbi for [u32]

§

type Abi = WasmMutSlice

§

type Anchor = MutSlice<u32>

source§

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

source§

impl RefMutFromWasmAbi for [i32]

§

type Abi = WasmMutSlice

§

type Anchor = MutSlice<i32>

source§

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

source§

impl RefMutFromWasmAbi for [u64]

§

type Abi = WasmMutSlice

§

type Anchor = MutSlice<u64>

source§

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

source§

impl RefMutFromWasmAbi for [i64]

§

type Abi = WasmMutSlice

§

type Anchor = MutSlice<i64>

source§

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

source§

impl RefMutFromWasmAbi for [usize]

§

type Abi = WasmMutSlice

§

type Anchor = MutSlice<usize>

source§

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

source§

impl RefMutFromWasmAbi for [isize]

§

type Abi = WasmMutSlice

§

type Anchor = MutSlice<isize>

source§

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

source§

impl RefMutFromWasmAbi for [f32]

§

type Abi = WasmMutSlice

§

type Anchor = MutSlice<f32>

source§

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

source§

impl RefMutFromWasmAbi for [f64]

§

type Abi = WasmMutSlice

§

type Anchor = MutSlice<f64>

source§

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

Implementors§