Trait wasm_bindgen::convert::RefFromWasmAbi [−][src]
pub trait RefFromWasmAbi: WasmDescribe {
type Abi: WasmAbi;
type Anchor: Deref<Target = Self>;
unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor;
}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[src]
The wasm ABI type references to Self are recovered from.
type Anchor: Deref<Target = Self>[src]
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) -> Self::Anchor[src]
Implementations on Foreign Types
impl RefFromWasmAbi for [u8][src]
impl RefFromWasmAbi for [u8][src]impl RefFromWasmAbi for [i8][src]
impl RefFromWasmAbi for [i8][src]impl RefFromWasmAbi for [u16][src]
impl RefFromWasmAbi for [u16][src]impl RefFromWasmAbi for [i16][src]
impl RefFromWasmAbi for [i16][src]impl RefFromWasmAbi for [u32][src]
impl RefFromWasmAbi for [u32][src]impl RefFromWasmAbi for [i32][src]
impl RefFromWasmAbi for [i32][src]impl RefFromWasmAbi for [u64][src]
impl RefFromWasmAbi for [u64][src]impl RefFromWasmAbi for [i64][src]
impl RefFromWasmAbi for [i64][src]impl RefFromWasmAbi for [usize][src]
impl RefFromWasmAbi for [usize][src]impl RefFromWasmAbi for [isize][src]
impl RefFromWasmAbi for [isize][src]impl RefFromWasmAbi for [f32][src]
impl RefFromWasmAbi for [f32][src]impl RefFromWasmAbi for [f64][src]
impl RefFromWasmAbi for [f64][src]impl RefFromWasmAbi for str[src]
impl RefFromWasmAbi for str[src]Implementors
impl RefFromWasmAbi for JsValue[src]
impl RefFromWasmAbi for JsValue[src]