Trait sauron::prelude::wasm_bindgen::convert::FromWasmAbi
source · [−]pub trait FromWasmAbi: WasmDescribe {
type Abi: WasmAbi;
unsafe fn from_abi(js: Self::Abi) -> Self;
}
Expand description
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
Required methods
Implementations on Foreign Types
sourceimpl FromWasmAbi for Box<[f64], Global>
impl FromWasmAbi for Box<[f64], Global>
type Abi = WasmSlice
pub unsafe fn from_abi(js: WasmSlice) -> Box<[f64], Global>ⓘNotable traits for Box<R, Global>impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
sourceimpl FromWasmAbi for Box<[i32], Global>
impl FromWasmAbi for Box<[i32], Global>
type Abi = WasmSlice
pub unsafe fn from_abi(js: WasmSlice) -> Box<[i32], Global>ⓘNotable traits for Box<R, Global>impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
sourceimpl FromWasmAbi for String
impl FromWasmAbi for String
sourceimpl FromWasmAbi for Box<[f32], Global>
impl FromWasmAbi for Box<[f32], Global>
type Abi = WasmSlice
pub unsafe fn from_abi(js: WasmSlice) -> Box<[f32], Global>ⓘNotable traits for Box<R, Global>impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
sourceimpl FromWasmAbi for Box<[u16], Global>
impl FromWasmAbi for Box<[u16], Global>
type Abi = WasmSlice
pub unsafe fn from_abi(js: WasmSlice) -> Box<[u16], Global>ⓘNotable traits for Box<R, Global>impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
sourceimpl FromWasmAbi for Option<f64>
impl FromWasmAbi for Option<f64>
type Abi = WasmOptionalF64
pub unsafe fn from_abi(js: WasmOptionalF64) -> Option<f64>
sourceimpl<T> FromWasmAbi for Box<[T], Global> where
T: JsObject,
impl<T> FromWasmAbi for Box<[T], Global> where
T: JsObject,
type Abi = WasmSlice
pub unsafe fn from_abi(js: WasmSlice) -> Box<[T], Global>ⓘNotable traits for Box<R, Global>impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
sourceimpl FromWasmAbi for Box<[i64], Global>
impl FromWasmAbi for Box<[i64], Global>
type Abi = WasmSlice
pub unsafe fn from_abi(js: WasmSlice) -> Box<[i64], Global>ⓘNotable traits for Box<R, Global>impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
sourceimpl FromWasmAbi for Option<i64>
impl FromWasmAbi for Option<i64>
type Abi = WasmOptional64
pub unsafe fn from_abi(js: WasmOptional64) -> Option<i64>
sourceimpl<T> FromWasmAbi for Option<T> where
T: OptionFromWasmAbi,
impl<T> FromWasmAbi for Option<T> where
T: OptionFromWasmAbi,
type Abi = <T as FromWasmAbi>::Abi
pub unsafe fn from_abi(js: <T as FromWasmAbi>::Abi) -> Option<T>
sourceimpl FromWasmAbi for Option<u32>
impl FromWasmAbi for Option<u32>
type Abi = WasmOptionalU32
pub unsafe fn from_abi(js: WasmOptionalU32) -> Option<u32>
sourceimpl FromWasmAbi for Option<u64>
impl FromWasmAbi for Option<u64>
type Abi = WasmOptional64
pub unsafe fn from_abi(js: WasmOptional64) -> Option<u64>
sourceimpl FromWasmAbi for Box<[usize], Global>
impl FromWasmAbi for Box<[usize], Global>
type Abi = WasmSlice
pub unsafe fn from_abi(js: WasmSlice) -> Box<[usize], Global>ⓘNotable traits for Box<R, Global>impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
sourceimpl FromWasmAbi for Option<isize>
impl FromWasmAbi for Option<isize>
type Abi = WasmOptionalI32
pub unsafe fn from_abi(js: WasmOptionalI32) -> Option<isize>
sourceimpl FromWasmAbi for Box<[i8], Global>
impl FromWasmAbi for Box<[i8], Global>
type Abi = WasmSlice
pub unsafe fn from_abi(js: WasmSlice) -> Box<[i8], Global>ⓘNotable traits for Box<R, Global>impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
sourceimpl FromWasmAbi for Option<i32>
impl FromWasmAbi for Option<i32>
type Abi = WasmOptionalI32
pub unsafe fn from_abi(js: WasmOptionalI32) -> Option<i32>
sourceimpl FromWasmAbi for Box<[isize], Global>
impl FromWasmAbi for Box<[isize], Global>
type Abi = WasmSlice
pub unsafe fn from_abi(js: WasmSlice) -> Box<[isize], Global>ⓘNotable traits for Box<R, Global>impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
sourceimpl<T> FromWasmAbi for *const T
impl<T> FromWasmAbi for *const T
sourceimpl FromWasmAbi for Box<[u8], Global>
impl FromWasmAbi for Box<[u8], Global>
type Abi = WasmSlice
pub unsafe fn from_abi(js: WasmSlice) -> Box<[u8], Global>ⓘNotable traits for Box<R, Global>impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
sourceimpl<T> FromWasmAbi for Vec<T, Global> where
Box<[T], Global>: FromWasmAbi,
<Box<[T], Global> as FromWasmAbi>::Abi == WasmSlice,
impl<T> FromWasmAbi for Vec<T, Global> where
Box<[T], Global>: FromWasmAbi,
<Box<[T], Global> as FromWasmAbi>::Abi == WasmSlice,
sourceimpl FromWasmAbi for Box<[u64], Global>
impl FromWasmAbi for Box<[u64], Global>
type Abi = WasmSlice
pub unsafe fn from_abi(js: WasmSlice) -> Box<[u64], Global>ⓘNotable traits for Box<R, Global>impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
sourceimpl FromWasmAbi for Box<[u32], Global>
impl FromWasmAbi for Box<[u32], Global>
type Abi = WasmSlice
pub unsafe fn from_abi(js: WasmSlice) -> Box<[u32], Global>ⓘNotable traits for Box<R, Global>impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
sourceimpl FromWasmAbi for Box<[JsValue], Global>
impl FromWasmAbi for Box<[JsValue], Global>
type Abi = WasmSlice
pub unsafe fn from_abi(js: WasmSlice) -> Box<[JsValue], Global>ⓘNotable traits for Box<R, Global>impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
sourceimpl FromWasmAbi for Option<usize>
impl FromWasmAbi for Option<usize>
type Abi = WasmOptionalU32
pub unsafe fn from_abi(js: WasmOptionalU32) -> Option<usize>
sourceimpl FromWasmAbi for Box<[i16], Global>
impl FromWasmAbi for Box<[i16], Global>
type Abi = WasmSlice
pub unsafe fn from_abi(js: WasmSlice) -> Box<[i16], Global>ⓘNotable traits for Box<R, Global>impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;