Trait RefFromWasmAbi
pub trait RefFromWasmAbi: WasmDescribe
A trait for anything that can be recovered as some sort of shared reference from the Wasm ABI boundary.
This is the shared reference variant of the opposite operation as
IntoWasmAbi.
⚠️ 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 references to
Selfare recovered from.type Anchor: Deref<Target = Self>;The type that holds the reference to
Selffor the duration of the invocation of the function that has an&Selfparameter. This is required to ensure that the lifetimes don't persist beyond one function call, and so that they remain anonymous.
Required Methods
unsafe fn ref_from_abi(js: Self::Abi) -> Self::AnchorRecover a
Self::AnchorfromSelf::Abi.Safety
Same as
FromWasmAbi::from_abi.
Implementors
impl RefFromWasmAbi for JsValueimpl RefFromWasmAbi for Nullimpl RefFromWasmAbi for Undefinedimpl RefFromWasmAbi for [MaybeUninit<f32>]impl RefFromWasmAbi for [MaybeUninit<f64>]impl RefFromWasmAbi for [MaybeUninit<i16>]impl RefFromWasmAbi for [MaybeUninit<i32>]impl RefFromWasmAbi for [MaybeUninit<i64>]impl RefFromWasmAbi for [MaybeUninit<i8>]impl RefFromWasmAbi for [MaybeUninit<isize>]impl RefFromWasmAbi for [MaybeUninit<u16>]impl RefFromWasmAbi for [MaybeUninit<u32>]impl RefFromWasmAbi for [MaybeUninit<u64>]impl RefFromWasmAbi for [MaybeUninit<u8>]impl RefFromWasmAbi for [MaybeUninit<usize>]impl RefFromWasmAbi for [f32]impl RefFromWasmAbi for [f64]impl RefFromWasmAbi for [i16]impl RefFromWasmAbi for [i32]impl RefFromWasmAbi for [i64]impl RefFromWasmAbi for [i8]impl RefFromWasmAbi for [isize]impl RefFromWasmAbi for [u16]impl RefFromWasmAbi for [u32]impl RefFromWasmAbi for [u64]impl RefFromWasmAbi for [u8]impl RefFromWasmAbi for [usize]impl RefFromWasmAbi for strimpl<T> RefFromWasmAbi for JsNullable<T>impl<T> RefFromWasmAbi for JsOption<T>