[−][src]Trait wasm_bindgen::convert::RefFromWasmAbi
A trait for anything that can be recovered as some sort of shared reference from the wasm ABI boundary.
This is the shared reference variant of the opposite operation as
IntoWasmAbi.
Associated Types
type Abi: WasmAbi
The wasm ABI type references to Self are recovered from.
type Anchor: Deref<Target = Self>
The type that holds the reference to Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don't persist beyond one function
call, and so that they remain anonymous.
Required Methods
unsafe fn ref_from_abi(js: Self::Abi, extra: &mut dyn Stack) -> Self::Anchor
Implementations on Foreign Types
impl RefFromWasmAbi for [u8][src]
impl RefFromWasmAbi for [u8]type Abi = WasmSlice
type Anchor = &'static [u8]
unsafe fn ref_from_abi(js: WasmSlice, extra: &mut dyn Stack) -> &'static [u8][src]
unsafe fn ref_from_abi(js: WasmSlice, extra: &mut dyn Stack) -> &'static [u8]impl RefFromWasmAbi for [i8][src]
impl RefFromWasmAbi for [i8]type Abi = WasmSlice
type Anchor = &'static [i8]
unsafe fn ref_from_abi(js: WasmSlice, extra: &mut dyn Stack) -> &'static [i8][src]
unsafe fn ref_from_abi(js: WasmSlice, extra: &mut dyn Stack) -> &'static [i8]impl RefFromWasmAbi for [u16][src]
impl RefFromWasmAbi for [u16]type Abi = WasmSlice
type Anchor = &'static [u16]
unsafe fn ref_from_abi(js: WasmSlice, extra: &mut dyn Stack) -> &'static [u16][src]
unsafe fn ref_from_abi(js: WasmSlice, extra: &mut dyn Stack) -> &'static [u16]impl RefFromWasmAbi for [i16][src]
impl RefFromWasmAbi for [i16]type Abi = WasmSlice
type Anchor = &'static [i16]
unsafe fn ref_from_abi(js: WasmSlice, extra: &mut dyn Stack) -> &'static [i16][src]
unsafe fn ref_from_abi(js: WasmSlice, extra: &mut dyn Stack) -> &'static [i16]impl RefFromWasmAbi for [u32][src]
impl RefFromWasmAbi for [u32]type Abi = WasmSlice
type Anchor = &'static [u32]
unsafe fn ref_from_abi(js: WasmSlice, extra: &mut dyn Stack) -> &'static [u32][src]
unsafe fn ref_from_abi(js: WasmSlice, extra: &mut dyn Stack) -> &'static [u32]impl RefFromWasmAbi for [i32][src]
impl RefFromWasmAbi for [i32]type Abi = WasmSlice
type Anchor = &'static [i32]
unsafe fn ref_from_abi(js: WasmSlice, extra: &mut dyn Stack) -> &'static [i32][src]
unsafe fn ref_from_abi(js: WasmSlice, extra: &mut dyn Stack) -> &'static [i32]impl RefFromWasmAbi for [u64][src]
impl RefFromWasmAbi for [u64]type Abi = WasmSlice
type Anchor = &'static [u64]
unsafe fn ref_from_abi(js: WasmSlice, extra: &mut dyn Stack) -> &'static [u64][src]
unsafe fn ref_from_abi(js: WasmSlice, extra: &mut dyn Stack) -> &'static [u64]impl RefFromWasmAbi for [i64][src]
impl RefFromWasmAbi for [i64]type Abi = WasmSlice
type Anchor = &'static [i64]
unsafe fn ref_from_abi(js: WasmSlice, extra: &mut dyn Stack) -> &'static [i64][src]
unsafe fn ref_from_abi(js: WasmSlice, extra: &mut dyn Stack) -> &'static [i64]impl RefFromWasmAbi for [f32][src]
impl RefFromWasmAbi for [f32]type Abi = WasmSlice
type Anchor = &'static [f32]
unsafe fn ref_from_abi(js: WasmSlice, extra: &mut dyn Stack) -> &'static [f32][src]
unsafe fn ref_from_abi(js: WasmSlice, extra: &mut dyn Stack) -> &'static [f32]impl RefFromWasmAbi for [f64][src]
impl RefFromWasmAbi for [f64]type Abi = WasmSlice
type Anchor = &'static [f64]
unsafe fn ref_from_abi(js: WasmSlice, extra: &mut dyn Stack) -> &'static [f64][src]
unsafe fn ref_from_abi(js: WasmSlice, extra: &mut dyn Stack) -> &'static [f64]impl RefFromWasmAbi for str[src]
impl RefFromWasmAbi for strtype Abi = <[u8] as RefFromWasmAbi>::Abi
type Anchor = &'static str
unsafe fn ref_from_abi(js: Self::Abi, extra: &mut dyn Stack) -> Self::Anchor[src]
unsafe fn ref_from_abi(js: Self::Abi, extra: &mut dyn Stack) -> Self::Anchor