[−][src]Trait wasm_bindgen::convert::FromWasmAbi
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.
Required Methods
unsafe fn from_abi(js: Self::Abi, extra: &mut dyn Stack) -> 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.
Implementations on Foreign Types
impl FromWasmAbi for i32[src]
impl FromWasmAbi for i32impl FromWasmAbi for Option<i32>[src]
impl FromWasmAbi for Option<i32>type Abi = WasmOptionalI32
unsafe fn from_abi(js: WasmOptionalI32, _extra: &mut dyn Stack) -> Self[src]
unsafe fn from_abi(js: WasmOptionalI32, _extra: &mut dyn Stack) -> Selfimpl FromWasmAbi for isize[src]
impl FromWasmAbi for isizeimpl FromWasmAbi for Option<isize>[src]
impl FromWasmAbi for Option<isize>type Abi = WasmOptionalI32
unsafe fn from_abi(js: WasmOptionalI32, _extra: &mut dyn Stack) -> Self[src]
unsafe fn from_abi(js: WasmOptionalI32, _extra: &mut dyn Stack) -> Selfimpl FromWasmAbi for u32[src]
impl FromWasmAbi for u32impl FromWasmAbi for Option<u32>[src]
impl FromWasmAbi for Option<u32>type Abi = WasmOptionalU32
unsafe fn from_abi(js: WasmOptionalU32, _extra: &mut dyn Stack) -> Self[src]
unsafe fn from_abi(js: WasmOptionalU32, _extra: &mut dyn Stack) -> Selfimpl FromWasmAbi for usize[src]
impl FromWasmAbi for usizeimpl FromWasmAbi for Option<usize>[src]
impl FromWasmAbi for Option<usize>type Abi = WasmOptionalU32
unsafe fn from_abi(js: WasmOptionalU32, _extra: &mut dyn Stack) -> Self[src]
unsafe fn from_abi(js: WasmOptionalU32, _extra: &mut dyn Stack) -> Selfimpl FromWasmAbi for f32[src]
impl FromWasmAbi for f32impl FromWasmAbi for Option<f32>[src]
impl FromWasmAbi for Option<f32>type Abi = WasmOptionalF32
unsafe fn from_abi(js: WasmOptionalF32, _extra: &mut dyn Stack) -> Self[src]
unsafe fn from_abi(js: WasmOptionalF32, _extra: &mut dyn Stack) -> Selfimpl FromWasmAbi for f64[src]
impl FromWasmAbi for f64impl FromWasmAbi for Option<f64>[src]
impl FromWasmAbi for Option<f64>type Abi = WasmOptionalF64
unsafe fn from_abi(js: WasmOptionalF64, _extra: &mut dyn Stack) -> Self[src]
unsafe fn from_abi(js: WasmOptionalF64, _extra: &mut dyn Stack) -> Selfimpl FromWasmAbi for i8[src]
impl FromWasmAbi for i8impl FromWasmAbi for u8[src]
impl FromWasmAbi for u8impl FromWasmAbi for i16[src]
impl FromWasmAbi for i16impl FromWasmAbi for u16[src]
impl FromWasmAbi for u16impl FromWasmAbi for i64[src]
impl FromWasmAbi for i64impl FromWasmAbi for Option<i64>[src]
impl FromWasmAbi for Option<i64>type Abi = WasmOptional64
unsafe fn from_abi(js: WasmOptional64, _extra: &mut dyn Stack) -> Self[src]
unsafe fn from_abi(js: WasmOptional64, _extra: &mut dyn Stack) -> Selfimpl FromWasmAbi for u64[src]
impl FromWasmAbi for u64impl FromWasmAbi for Option<u64>[src]
impl FromWasmAbi for Option<u64>type Abi = WasmOptional64
unsafe fn from_abi(js: WasmOptional64, _extra: &mut dyn Stack) -> Self[src]
unsafe fn from_abi(js: WasmOptional64, _extra: &mut dyn Stack) -> Selfimpl FromWasmAbi for bool[src]
impl FromWasmAbi for boolimpl FromWasmAbi for char[src]
impl FromWasmAbi for charimpl FromWasmAbi for Option<char>[src]
impl FromWasmAbi for Option<char>type Abi = WasmOptionalU32
unsafe fn from_abi(js: WasmOptionalU32, _extra: &mut dyn Stack) -> Self[src]
unsafe fn from_abi(js: WasmOptionalU32, _extra: &mut dyn Stack) -> Selfimpl<T> FromWasmAbi for *const T[src]
impl<T> FromWasmAbi for *const Timpl<T> FromWasmAbi for *mut T[src]
impl<T> FromWasmAbi for *mut Timpl<T: OptionFromWasmAbi> FromWasmAbi for Option<T>[src]
impl<T: OptionFromWasmAbi> FromWasmAbi for Option<T>impl FromWasmAbi for Box<[u8]>[src]
impl FromWasmAbi for Box<[u8]>impl FromWasmAbi for Box<[i8]>[src]
impl FromWasmAbi for Box<[i8]>impl FromWasmAbi for Box<[u16]>[src]
impl FromWasmAbi for Box<[u16]>impl FromWasmAbi for Box<[i16]>[src]
impl FromWasmAbi for Box<[i16]>impl FromWasmAbi for Box<[u32]>[src]
impl FromWasmAbi for Box<[u32]>impl FromWasmAbi for Box<[i32]>[src]
impl FromWasmAbi for Box<[i32]>impl FromWasmAbi for Box<[u64]>[src]
impl FromWasmAbi for Box<[u64]>impl FromWasmAbi for Box<[i64]>[src]
impl FromWasmAbi for Box<[i64]>impl FromWasmAbi for Box<[f32]>[src]
impl FromWasmAbi for Box<[f32]>impl FromWasmAbi for Box<[f64]>[src]
impl FromWasmAbi for Box<[f64]>impl<T> FromWasmAbi for Vec<T> where
Box<[T]>: FromWasmAbi<Abi = WasmSlice>, [src]
impl<T> FromWasmAbi for Vec<T> where
Box<[T]>: FromWasmAbi<Abi = WasmSlice>, type Abi = <Box<[T]> as FromWasmAbi>::Abi
unsafe fn from_abi(js: Self::Abi, extra: &mut dyn Stack) -> Self[src]
unsafe fn from_abi(js: Self::Abi, extra: &mut dyn Stack) -> Selfimpl FromWasmAbi for String[src]
impl FromWasmAbi for Stringtype Abi = <Vec<u8> as FromWasmAbi>::Abi
unsafe fn from_abi(js: Self::Abi, extra: &mut dyn Stack) -> Self[src]
unsafe fn from_abi(js: Self::Abi, extra: &mut dyn Stack) -> Selfimpl FromWasmAbi for Box<[JsValue]>[src]
impl FromWasmAbi for Box<[JsValue]>