[][src]Trait sauron::prelude::wasm_bindgen::convert::RefFromWasmAbi

pub trait RefFromWasmAbi: WasmDescribe {
    type Abi: WasmAbi;
    type Anchor: Deref;
    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

The wasm ABI type references to Self are recovered from.

type Anchor: Deref

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.

Loading content...

Required methods

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

Recover a Self::Anchor from Self::Abi.

Safety

Same as FromWasmAbi::from_abi.

Loading content...

Implementations on Foreign Types

impl RefFromWasmAbi for [u32][src]

type Abi = WasmSlice

type Anchor = Box<[u32]>

impl RefFromWasmAbi for [i64][src]

type Abi = WasmSlice

type Anchor = Box<[i64]>

impl RefFromWasmAbi for [isize][src]

type Abi = WasmSlice

type Anchor = Box<[isize]>

impl RefFromWasmAbi for [u64][src]

type Abi = WasmSlice

type Anchor = Box<[u64]>

impl RefFromWasmAbi for str[src]

type Abi = <[u8] as RefFromWasmAbi>::Abi

type Anchor = Box<str>

impl RefFromWasmAbi for [u8][src]

type Abi = WasmSlice

type Anchor = Box<[u8]>

impl RefFromWasmAbi for [i8][src]

type Abi = WasmSlice

type Anchor = Box<[i8]>

impl RefFromWasmAbi for [u16][src]

type Abi = WasmSlice

type Anchor = Box<[u16]>

impl RefFromWasmAbi for [i32][src]

type Abi = WasmSlice

type Anchor = Box<[i32]>

impl RefFromWasmAbi for [i16][src]

type Abi = WasmSlice

type Anchor = Box<[i16]>

impl RefFromWasmAbi for [usize][src]

type Abi = WasmSlice

type Anchor = Box<[usize]>

impl RefFromWasmAbi for [f32][src]

type Abi = WasmSlice

type Anchor = Box<[f32]>

impl RefFromWasmAbi for [f64][src]

type Abi = WasmSlice

type Anchor = Box<[f64]>

Loading content...

Implementors

impl RefFromWasmAbi for Collator[src]

impl RefFromWasmAbi for DateTimeFormat[src]

impl RefFromWasmAbi for NumberFormat[src]

impl RefFromWasmAbi for PluralRules[src]

impl RefFromWasmAbi for CompileError[src]

impl RefFromWasmAbi for Instance[src]

impl RefFromWasmAbi for LinkError[src]

impl RefFromWasmAbi for Memory[src]

impl RefFromWasmAbi for Module[src]

impl RefFromWasmAbi for RuntimeError[src]

impl RefFromWasmAbi for Table[src]

impl RefFromWasmAbi for Array[src]

impl RefFromWasmAbi for ArrayBuffer[src]

impl RefFromWasmAbi for AsyncIterator[src]

impl RefFromWasmAbi for Boolean[src]

impl RefFromWasmAbi for DataView[src]

impl RefFromWasmAbi for Date[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

type Anchor = ManuallyDrop<Date>

impl RefFromWasmAbi for Error[src]

impl RefFromWasmAbi for EvalError[src]

impl RefFromWasmAbi for Float32Array[src]

impl RefFromWasmAbi for Float64Array[src]

impl RefFromWasmAbi for Function[src]

impl RefFromWasmAbi for Generator[src]

impl RefFromWasmAbi for Int8Array[src]

impl RefFromWasmAbi for Int16Array[src]

impl RefFromWasmAbi for Int32Array[src]

impl RefFromWasmAbi for Iterator[src]

impl RefFromWasmAbi for IteratorNext[src]

impl RefFromWasmAbi for JsString[src]

impl RefFromWasmAbi for Map[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

type Anchor = ManuallyDrop<Map>

impl RefFromWasmAbi for Number[src]

impl RefFromWasmAbi for Object[src]

impl RefFromWasmAbi for Promise[src]

impl RefFromWasmAbi for Proxy[src]

impl RefFromWasmAbi for RangeError[src]

impl RefFromWasmAbi for ReferenceError[src]

impl RefFromWasmAbi for RegExp[src]

impl RefFromWasmAbi for Set[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

type Anchor = ManuallyDrop<Set>

impl RefFromWasmAbi for SharedArrayBuffer[src]

impl RefFromWasmAbi for Symbol[src]

impl RefFromWasmAbi for SyntaxError[src]

impl RefFromWasmAbi for TypeError[src]

impl RefFromWasmAbi for Uint8Array[src]

impl RefFromWasmAbi for Uint8ClampedArray[src]

impl RefFromWasmAbi for Uint16Array[src]

impl RefFromWasmAbi for Uint32Array[src]

impl RefFromWasmAbi for UriError[src]

impl RefFromWasmAbi for WeakMap[src]

impl RefFromWasmAbi for WeakSet[src]

impl RefFromWasmAbi for AnimationEvent[src]

impl RefFromWasmAbi for HashChangeEvent[src]

impl RefFromWasmAbi for JsValue[src]

impl RefFromWasmAbi for KeyboardEvent[src]

impl RefFromWasmAbi for MouseEvent[src]

impl RefFromWasmAbi for TransitionEvent[src]

impl RefFromWasmAbi for CharacterData[src]

impl RefFromWasmAbi for Comment[src]

impl RefFromWasmAbi for Document[src]

impl RefFromWasmAbi for Element[src]

impl RefFromWasmAbi for Event[src]

impl RefFromWasmAbi for EventTarget[src]

impl RefFromWasmAbi for History[src]

impl RefFromWasmAbi for HtmlCollection[src]

impl RefFromWasmAbi for HtmlElement[src]

impl RefFromWasmAbi for HtmlHeadElement[src]

impl RefFromWasmAbi for HtmlInputElement[src]

impl RefFromWasmAbi for HtmlTextAreaElement[src]

impl RefFromWasmAbi for InputEvent[src]

impl RefFromWasmAbi for Location[src]

impl RefFromWasmAbi for MessageEvent[src]

impl RefFromWasmAbi for Navigator[src]

impl RefFromWasmAbi for Node[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

type Anchor = ManuallyDrop<Node>

impl RefFromWasmAbi for NodeList[src]

impl RefFromWasmAbi for Performance[src]

impl RefFromWasmAbi for Response[src]

impl RefFromWasmAbi for ScrollToOptions[src]

impl RefFromWasmAbi for Text[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

type Anchor = ManuallyDrop<Text>

impl RefFromWasmAbi for UiEvent[src]

impl RefFromWasmAbi for Window[src]

impl RefFromWasmAbi for Worker[src]

Loading content...