pub trait WasmABILander: Sized + Any + Send + 'static {
    // Required method
    fn land_abi(env: &FunctionEnv<Self>, store: &mut impl AsStoreMut) -> Imports;
}
Expand description

The “WasmABILander” defines how a Rust native struct generates the corresponding Wasm ABI for its getter functions.

Required Methods§

source

fn land_abi(env: &FunctionEnv<Self>, store: &mut impl AsStoreMut) -> Imports

The land_abi function needs to return an ImportObject. read more: https://developer.mozilla.org/en-US/docs/WebAssembly/JavaScript_interface/instantiate

Implementors§