pub trait RefFromWasmAbi: WasmDescribe {
type Abi: WasmAbi;
type Anchor: Deref<Target = Self>;
// Required method
unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor;
}
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
Object Safety§
This trait is not object safe.