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

pub trait FromWasmAbi: WasmDescribe {
    type Abi: WasmAbi;
    unsafe fn from_abi(js: Self::Abi) -> Self;
}

A trait for anything that can be recovered by-value from the wasm ABI boundary, eg a Rust u8 can be recovered from the wasm ABI u32 type.

This is the by-value variant of the opposite operation as IntoWasmAbi.

Associated Types

type Abi: WasmAbi

The wasm ABI type that this converts from when coming back out from the ABI boundary.

Loading content...

Required methods

unsafe fn from_abi(js: Self::Abi) -> Self

Recover a Self from Self::Abi.

Safety

This is only safe to call when -- and implementations may assume that -- the supplied Self::Abi was previously generated by a call to <Self as IntoWasmAbi>::into_abi() or the moral equivalent in JS.

Loading content...

Implementations on Foreign Types

impl FromWasmAbi for Box<[u16]>[src]

type Abi = WasmSlice

impl FromWasmAbi for Box<[u32]>[src]

type Abi = WasmSlice

impl FromWasmAbi for Box<[JsValue]>[src]

type Abi = WasmSlice

impl FromWasmAbi for char[src]

type Abi = u32

impl FromWasmAbi for u64[src]

type Abi = Wasm64

impl FromWasmAbi for Box<[i16]>[src]

type Abi = WasmSlice

impl FromWasmAbi for Box<[f64]>[src]

type Abi = WasmSlice

impl FromWasmAbi for Option<f32>[src]

impl FromWasmAbi for Box<[u8]>[src]

type Abi = WasmSlice

impl FromWasmAbi for usize[src]

type Abi = u32

impl FromWasmAbi for String[src]

type Abi = <Vec<u8> as FromWasmAbi>::Abi

impl FromWasmAbi for Option<u64>[src]

impl<T> FromWasmAbi for Option<T> where
    T: OptionFromWasmAbi
[src]

type Abi = <T as FromWasmAbi>::Abi

impl FromWasmAbi for i8[src]

type Abi = u32

impl FromWasmAbi for f64[src]

type Abi = f64

impl FromWasmAbi for Box<[i32]>[src]

type Abi = WasmSlice

impl FromWasmAbi for Box<[i64]>[src]

type Abi = WasmSlice

impl FromWasmAbi for Box<[i8]>[src]

type Abi = WasmSlice

impl FromWasmAbi for Box<[f32]>[src]

type Abi = WasmSlice

impl FromWasmAbi for isize[src]

type Abi = i32

impl FromWasmAbi for Option<usize>[src]

impl FromWasmAbi for Option<u32>[src]

impl FromWasmAbi for Box<[u64]>[src]

type Abi = WasmSlice

impl FromWasmAbi for i16[src]

type Abi = u32

impl<T> FromWasmAbi for *const T[src]

type Abi = u32

impl<T> FromWasmAbi for Vec<T> where
    Box<[T]>: FromWasmAbi,
    <Box<[T]> as FromWasmAbi>::Abi == WasmSlice
[src]

type Abi = <Box<[T]> as FromWasmAbi>::Abi

impl FromWasmAbi for Option<i32>[src]

impl<T> FromWasmAbi for *mut T[src]

type Abi = u32

impl FromWasmAbi for Option<f64>[src]

impl FromWasmAbi for Box<[usize]>[src]

type Abi = WasmSlice

impl FromWasmAbi for bool[src]

type Abi = u32

impl FromWasmAbi for Option<i64>[src]

impl FromWasmAbi for Box<[isize]>[src]

type Abi = WasmSlice

impl FromWasmAbi for f32[src]

type Abi = f32

impl FromWasmAbi for Option<isize>[src]

impl FromWasmAbi for u16[src]

type Abi = u32

impl FromWasmAbi for u8[src]

type Abi = u32

impl FromWasmAbi for i64[src]

type Abi = Wasm64

impl FromWasmAbi for i32[src]

type Abi = i32

impl FromWasmAbi for u32[src]

type Abi = u32

impl FromWasmAbi for Int8Array[src]

impl FromWasmAbi for RuntimeError[src]

impl FromWasmAbi for ReferenceError[src]

impl FromWasmAbi for Map[src]

type Abi = <JsValue as FromWasmAbi>::Abi

impl FromWasmAbi for Float64Array[src]

impl FromWasmAbi for Uint8ClampedArray[src]

impl FromWasmAbi for LinkError[src]

impl FromWasmAbi for Float32Array[src]

impl FromWasmAbi for Boolean[src]

type Abi = <JsValue as FromWasmAbi>::Abi

impl FromWasmAbi for Uint8Array[src]

impl FromWasmAbi for Object[src]

type Abi = <JsValue as FromWasmAbi>::Abi

impl FromWasmAbi for Iterator[src]

impl FromWasmAbi for Module[src]

type Abi = <JsValue as FromWasmAbi>::Abi

impl FromWasmAbi for EvalError[src]

impl FromWasmAbi for AsyncIterator[src]

impl FromWasmAbi for Uint16Array[src]

impl FromWasmAbi for PluralRules[src]

impl FromWasmAbi for Generator[src]

impl FromWasmAbi for Memory[src]

type Abi = <JsValue as FromWasmAbi>::Abi

impl FromWasmAbi for DataView[src]

impl FromWasmAbi for Set[src]

type Abi = <JsValue as FromWasmAbi>::Abi

impl FromWasmAbi for Symbol[src]

type Abi = <JsValue as FromWasmAbi>::Abi

impl FromWasmAbi for Int32Array[src]

impl FromWasmAbi for RangeError[src]

impl FromWasmAbi for SharedArrayBuffer[src]

impl FromWasmAbi for SyntaxError[src]

impl FromWasmAbi for WeakMap[src]

type Abi = <JsValue as FromWasmAbi>::Abi

impl FromWasmAbi for DateTimeFormat[src]

impl FromWasmAbi for CompileError[src]

impl FromWasmAbi for Function[src]

impl FromWasmAbi for Uint32Array[src]

impl FromWasmAbi for Date[src]

type Abi = <JsValue as FromWasmAbi>::Abi

impl FromWasmAbi for NumberFormat[src]

impl FromWasmAbi for Table[src]

type Abi = <JsValue as FromWasmAbi>::Abi

impl FromWasmAbi for Number[src]

type Abi = <JsValue as FromWasmAbi>::Abi

impl FromWasmAbi for JsString[src]

impl FromWasmAbi for ArrayBuffer[src]

impl FromWasmAbi for Collator[src]

impl FromWasmAbi for UriError[src]

impl FromWasmAbi for Promise[src]

type Abi = <JsValue as FromWasmAbi>::Abi

impl FromWasmAbi for Int16Array[src]

impl FromWasmAbi for Proxy[src]

type Abi = <JsValue as FromWasmAbi>::Abi

impl FromWasmAbi for WeakSet[src]

type Abi = <JsValue as FromWasmAbi>::Abi

impl FromWasmAbi for Error[src]

type Abi = <JsValue as FromWasmAbi>::Abi

impl FromWasmAbi for RegExp[src]

type Abi = <JsValue as FromWasmAbi>::Abi

impl FromWasmAbi for IteratorNext[src]

impl FromWasmAbi for Instance[src]

impl FromWasmAbi for TypeError[src]

impl FromWasmAbi for Array[src]

type Abi = <JsValue as FromWasmAbi>::Abi

Loading content...

Implementors

impl FromWasmAbi for AnimationEvent[src]

impl FromWasmAbi for HashChangeEvent[src]

impl FromWasmAbi for JsValue[src]

type Abi = u32

impl FromWasmAbi for KeyboardEvent[src]

impl FromWasmAbi for MouseEvent[src]

impl FromWasmAbi for TransitionEvent[src]

impl FromWasmAbi for CharacterData[src]

impl FromWasmAbi for Comment[src]

type Abi = <JsValue as FromWasmAbi>::Abi

impl FromWasmAbi for Document[src]

impl FromWasmAbi for Element[src]

type Abi = <JsValue as FromWasmAbi>::Abi

impl FromWasmAbi for Event[src]

type Abi = <JsValue as FromWasmAbi>::Abi

impl FromWasmAbi for EventTarget[src]

impl FromWasmAbi for History[src]

type Abi = <JsValue as FromWasmAbi>::Abi

impl FromWasmAbi for HtmlCollection[src]

impl FromWasmAbi for HtmlElement[src]

impl FromWasmAbi for HtmlHeadElement[src]

impl FromWasmAbi for HtmlInputElement[src]

impl FromWasmAbi for HtmlTextAreaElement[src]

impl FromWasmAbi for InputEvent[src]

impl FromWasmAbi for Location[src]

impl FromWasmAbi for Node[src]

type Abi = <JsValue as FromWasmAbi>::Abi

impl FromWasmAbi for NodeList[src]

impl FromWasmAbi for Performance[src]

impl FromWasmAbi for Response[src]

impl FromWasmAbi for ScrollToOptions[src]

impl FromWasmAbi for Text[src]

type Abi = <JsValue as FromWasmAbi>::Abi

impl FromWasmAbi for UiEvent[src]

type Abi = <JsValue as FromWasmAbi>::Abi

impl FromWasmAbi for Window[src]

type Abi = <JsValue as FromWasmAbi>::Abi

impl<T> FromWasmAbi for Clamped<T> where
    T: FromWasmAbi
[src]

type Abi = <T as FromWasmAbi>::Abi

Loading content...