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

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