Trait wasm_bindgen::convert::RefFromWasmAbi
source · 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
.
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.