Trait wasm_bindgen::convert::RefFromWasmAbi
source · [−]pub trait RefFromWasmAbi: WasmDescribe {
type Abi: WasmAbi;
type Anchor: Deref<Target = Self>;
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
.