Module wasmer::typed_function

source ·
Expand description

Native Functions.

This module creates the helper TypedFunction that let us call WebAssembly functions with the native ABI, that is:

let add_one = instance.exports.get_function("function_name")?;
let add_one_native: TypedFunction<i32, i32> = add_one.native().unwrap();

Structs

  • A WebAssembly function that can be called natively (using the Native ABI).