pub trait RefFromWasmAbi: WasmDescribe {
type Abi: WasmAbi;
type Anchor: Deref<Target = Self>;
// Required method
unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor;
}
Available on crate feature
dep_wasm_bindgen
only.Expand description
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.
Required Associated Types§
Required Methods§
Sourceunsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.