Trait FromWasmAbi

pub trait FromWasmAbi: WasmDescribe

A trait for anything that can be recovered by-value from the Wasm ABI boundary, eg a Rust u8 can be recovered from the Wasm ABI u32 type.

This is the by-value 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 that this converts from when coming back out from the ABI boundary.

Required Methods

unsafe fn from_abi(js: Self::Abi) -> Self

Recover a Self from Self::Abi.

Safety

This is only safe to call when -- and implementations may assume that -- the supplied Self::Abi was previously generated by a call to <Self as IntoWasmAbi>::into_abi() or the moral equivalent in JS.

Implementors