[−][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 Option<i32>[src]
type Abi = WasmOptionalI32
unsafe fn from_abi(js: WasmOptionalI32, _extra: &mut dyn Stack) -> Self[src]
impl FromWasmAbi for isize[src]
impl FromWasmAbi for Option<isize>[src]
type Abi = WasmOptionalI32
unsafe fn from_abi(js: WasmOptionalI32, _extra: &mut dyn Stack) -> Self[src]
impl FromWasmAbi for u32[src]
impl FromWasmAbi for Option<u32>[src]
type Abi = WasmOptionalU32
unsafe fn from_abi(js: WasmOptionalU32, _extra: &mut dyn Stack) -> Self[src]
impl FromWasmAbi for usize[src]
impl FromWasmAbi for Option<usize>[src]
type Abi = WasmOptionalU32
unsafe fn from_abi(js: WasmOptionalU32, _extra: &mut dyn Stack) -> Self[src]
impl FromWasmAbi for f32[src]
impl FromWasmAbi for Option<f32>[src]
type Abi = WasmOptionalF32
unsafe fn from_abi(js: WasmOptionalF32, _extra: &mut dyn Stack) -> Self[src]
impl FromWasmAbi for f64[src]
impl FromWasmAbi for Option<f64>[src]
type Abi = WasmOptionalF64
unsafe fn from_abi(js: WasmOptionalF64, _extra: &mut dyn Stack) -> Self[src]
impl FromWasmAbi for i8[src]
impl FromWasmAbi for u8[src]
impl FromWasmAbi for i16[src]
impl FromWasmAbi for u16[src]
impl FromWasmAbi for i64[src]
impl FromWasmAbi for Option<i64>[src]
type Abi = WasmOptional64
unsafe fn from_abi(js: WasmOptional64, _extra: &mut dyn Stack) -> Self[src]
impl FromWasmAbi for u64[src]
impl FromWasmAbi for Option<u64>[src]
type Abi = WasmOptional64
unsafe fn from_abi(js: WasmOptional64, _extra: &mut dyn Stack) -> Self[src]
impl FromWasmAbi for bool[src]
impl FromWasmAbi for char[src]
impl<T> FromWasmAbi for *const T[src]
impl<T> FromWasmAbi for *mut T[src]
impl<T: OptionFromWasmAbi> FromWasmAbi for Option<T>[src]
impl FromWasmAbi for Box<[u8]>[src]
impl FromWasmAbi for Box<[i8]>[src]
impl FromWasmAbi for Box<[u16]>[src]
impl FromWasmAbi for Box<[i16]>[src]
impl FromWasmAbi for Box<[u32]>[src]
impl FromWasmAbi for Box<[i32]>[src]
impl FromWasmAbi for Box<[u64]>[src]
impl FromWasmAbi for Box<[i64]>[src]
impl FromWasmAbi for Box<[usize]>[src]
impl FromWasmAbi for Box<[isize]>[src]
impl FromWasmAbi for Box<[f32]>[src]
impl FromWasmAbi for Box<[f64]>[src]
impl<T> FromWasmAbi for Vec<T> where
Box<[T]>: FromWasmAbi<Abi = WasmSlice>, [src]
Box<[T]>: FromWasmAbi<Abi = WasmSlice>,