Trait IntoWasmAbi
pub trait IntoWasmAbi: WasmDescribe
A trait for anything that can be converted into a type that can cross the
Wasm ABI directly, eg u32 or f64.
This is the opposite operation as FromWasmAbi and Ref[Mut]FromWasmAbi.
⚠️ Unstable
This is part of the internal convert module, no
stability guarantees are provided. Use at your own risk. See its
documentation for more details.
Associated Types
type Abi: WasmAbi;The Wasm ABI type that this converts into when crossing the ABI boundary.
Required Methods
fn into_abi(self) -> Self::AbiConvert
selfintoSelf::Abiso that it can be sent across the wasm ABI boundary.
Implementors
impl IntoWasmAbi for &JsValueimpl IntoWasmAbi for ()impl IntoWasmAbi for JsErrorimpl IntoWasmAbi for JsValueimpl IntoWasmAbi for Nullimpl IntoWasmAbi for Option<f32>impl IntoWasmAbi for Option<f64>impl IntoWasmAbi for Option<i128>impl IntoWasmAbi for Option<i32>impl IntoWasmAbi for Option<i64>impl IntoWasmAbi for Option<isize>impl IntoWasmAbi for Option<u128>impl IntoWasmAbi for Option<u32>impl IntoWasmAbi for Option<u64>impl IntoWasmAbi for Option<usize>impl IntoWasmAbi for Stringimpl IntoWasmAbi for Undefinedimpl IntoWasmAbi for boolimpl IntoWasmAbi for charimpl IntoWasmAbi for f32impl IntoWasmAbi for f64impl IntoWasmAbi for i128impl IntoWasmAbi for i16impl IntoWasmAbi for i32impl IntoWasmAbi for i64impl IntoWasmAbi for i8impl IntoWasmAbi for isizeimpl IntoWasmAbi for u128impl IntoWasmAbi for u16impl IntoWasmAbi for u32impl IntoWasmAbi for u64impl IntoWasmAbi for u8impl IntoWasmAbi for usizeimpl<'__wbg_ref> IntoWasmAbi for &'__wbg_ref Nullimpl<'__wbg_ref> IntoWasmAbi for &'__wbg_ref Undefinedimpl<'__wbg_ref, T> IntoWasmAbi for &'__wbg_ref JsNullable<T>impl<'__wbg_ref, T> IntoWasmAbi for &'__wbg_ref JsOption<T>impl<'a> IntoWasmAbi for &'a [MaybeUninit<f32>]impl<'a> IntoWasmAbi for &'a [MaybeUninit<f64>]impl<'a> IntoWasmAbi for &'a [MaybeUninit<i16>]impl<'a> IntoWasmAbi for &'a [MaybeUninit<i32>]impl<'a> IntoWasmAbi for &'a [MaybeUninit<i64>]impl<'a> IntoWasmAbi for &'a [MaybeUninit<i8>]impl<'a> IntoWasmAbi for &'a [MaybeUninit<isize>]impl<'a> IntoWasmAbi for &'a [MaybeUninit<u16>]impl<'a> IntoWasmAbi for &'a [MaybeUninit<u32>]impl<'a> IntoWasmAbi for &'a [MaybeUninit<u64>]impl<'a> IntoWasmAbi for &'a [MaybeUninit<u8>]impl<'a> IntoWasmAbi for &'a [MaybeUninit<usize>]impl<'a> IntoWasmAbi for &'a [f32]impl<'a> IntoWasmAbi for &'a [f64]impl<'a> IntoWasmAbi for &'a [i16]impl<'a> IntoWasmAbi for &'a [i32]impl<'a> IntoWasmAbi for &'a [i64]impl<'a> IntoWasmAbi for &'a [i8]impl<'a> IntoWasmAbi for &'a [isize]impl<'a> IntoWasmAbi for &'a [u16]impl<'a> IntoWasmAbi for &'a [u32]impl<'a> IntoWasmAbi for &'a [u64]impl<'a> IntoWasmAbi for &'a [u8]impl<'a> IntoWasmAbi for &'a [usize]impl<'a> IntoWasmAbi for &'a mut [MaybeUninit<f32>]impl<'a> IntoWasmAbi for &'a mut [MaybeUninit<f64>]impl<'a> IntoWasmAbi for &'a mut [MaybeUninit<i16>]impl<'a> IntoWasmAbi for &'a mut [MaybeUninit<i32>]impl<'a> IntoWasmAbi for &'a mut [MaybeUninit<i64>]impl<'a> IntoWasmAbi for &'a mut [MaybeUninit<i8>]impl<'a> IntoWasmAbi for &'a mut [MaybeUninit<isize>]impl<'a> IntoWasmAbi for &'a mut [MaybeUninit<u16>]impl<'a> IntoWasmAbi for &'a mut [MaybeUninit<u32>]impl<'a> IntoWasmAbi for &'a mut [MaybeUninit<u64>]impl<'a> IntoWasmAbi for &'a mut [MaybeUninit<u8>]impl<'a> IntoWasmAbi for &'a mut [MaybeUninit<usize>]impl<'a> IntoWasmAbi for &'a mut [f32]impl<'a> IntoWasmAbi for &'a mut [f64]impl<'a> IntoWasmAbi for &'a mut [i16]impl<'a> IntoWasmAbi for &'a mut [i32]impl<'a> IntoWasmAbi for &'a mut [i64]impl<'a> IntoWasmAbi for &'a mut [i8]impl<'a> IntoWasmAbi for &'a mut [isize]impl<'a> IntoWasmAbi for &'a mut [u16]impl<'a> IntoWasmAbi for &'a mut [u32]impl<'a> IntoWasmAbi for &'a mut [u64]impl<'a> IntoWasmAbi for &'a mut [u8]impl<'a> IntoWasmAbi for &'a mut [usize]impl<'a> IntoWasmAbi for &'a strimpl<A, B, C, D, E, F, G, H, R> IntoWasmAbi for &dyn Fn(A, B, C, D, E, F, G, H) -> R + '_ where Self: WasmDescribe,impl<A, B, C, D, E, F, G, H, R> IntoWasmAbi for &mut dyn FnMut(A, B, C, D, E, F, G, H) -> R + '_ where Self: WasmDescribe,impl<A, B, C, D, E, F, G, R> IntoWasmAbi for &dyn Fn(A, B, C, D, E, F, G) -> R + '_ where Self: WasmDescribe,impl<A, B, C, D, E, F, G, R> IntoWasmAbi for &mut dyn FnMut(A, B, C, D, E, F, G) -> R + '_ where Self: WasmDescribe,impl<A, B, C, D, E, F, R> IntoWasmAbi for &dyn Fn(A, B, C, D, E, F) -> R + '_ where Self: WasmDescribe,impl<A, B, C, D, E, F, R> IntoWasmAbi for &mut dyn FnMut(A, B, C, D, E, F) -> R + '_ where Self: WasmDescribe,impl<A, B, C, D, E, R> IntoWasmAbi for &dyn Fn(A, B, C, D, E) -> R + '_ where Self: WasmDescribe,impl<A, B, C, D, E, R> IntoWasmAbi for &mut dyn FnMut(A, B, C, D, E) -> R + '_ where Self: WasmDescribe,impl<A, B, C, D, R> IntoWasmAbi for &dyn Fn(A, B, C, D) -> R + '_ where Self: WasmDescribe,impl<A, B, C, D, R> IntoWasmAbi for &mut dyn FnMut(A, B, C, D) -> R + '_ where Self: WasmDescribe,impl<A, B, C, R> IntoWasmAbi for &dyn Fn(A, B, C) -> R + '_ where Self: WasmDescribe,impl<A, B, C, R> IntoWasmAbi for &mut dyn FnMut(A, B, C) -> R + '_ where Self: WasmDescribe,impl<A, B, R> IntoWasmAbi for &dyn Fn(A, B) -> R + '_ where Self: WasmDescribe,impl<A, B, R> IntoWasmAbi for &mut dyn FnMut(A, B) -> R + '_ where Self: WasmDescribe,impl<A, R> IntoWasmAbi for &dyn Fn(&A) -> R + '_ where Self: WasmDescribe,impl<A, R> IntoWasmAbi for &dyn Fn(A) -> R + '_ where Self: WasmDescribe,impl<A, R> IntoWasmAbi for &mut dyn FnMut(&A) -> R + '_ where Self: WasmDescribe,impl<A, R> IntoWasmAbi for &mut dyn FnMut(A) -> R + '_ where Self: WasmDescribe,impl<R> IntoWasmAbi for &dyn Fn() -> R + '_ where Self: WasmDescribe,impl<R> IntoWasmAbi for &mut dyn FnMut() -> R + '_ where Self: WasmDescribe,impl<T> IntoWasmAbi for &ScopedClosure<'_, T> where T: WasmClosure + ?Sized,impl<T> IntoWasmAbi for *const Timpl<T> IntoWasmAbi for *mut Timpl<T> IntoWasmAbi for JsNullable<T>impl<T> IntoWasmAbi for JsOption<T>impl<T> IntoWasmAbi for NonNull<T>impl<T> IntoWasmAbi for Option<*const T>impl<T> IntoWasmAbi for Option<*mut T>impl<T> IntoWasmAbi for ScopedClosure<'static, T> where T: WasmClosure + ?Sized,impl<T> IntoWasmAbi for Vec<T> where Box<[T]>: IntoWasmAbi<Abi = WasmSlice>,impl<T: ErasableGeneric<Repr = JsValue> + WasmDescribe> IntoWasmAbi for &[T]impl<T: IntoWasmAbi> IntoWasmAbi for Clamped<T>impl<T: OptionIntoWasmAbi> IntoWasmAbi for Option<T>impl<T: VectorIntoWasmAbi> IntoWasmAbi for Box<[T]>