Module wasmer_runtime_core_x::typed_func

source ·
Expand description

The typed func module implements a way of representing a wasm function with the correct types from rust. Function calls using a typed func have a low overhead.

Structs§

  • Represents a type-erased function provided by either the host or the WebAssembly program.
  • Represents a function that can be used by WebAssembly.
  • This type, as part of the Func type signature, represents a function that is created by the host.
  • This empty structure indicates that an external function has no vm::Ctx argument (at first position). Its signature is:
  • Struct for typed funcs.
  • Struct for typed funcs.
  • Struct for typed funcs.
  • Struct for typed funcs.
  • Struct for typed funcs.
  • Struct for typed funcs.
  • Struct for typed funcs.
  • Struct for typed funcs.
  • Struct for typed funcs.
  • Struct for typed funcs.
  • Struct for typed funcs.
  • Struct for typed funcs.
  • Struct for typed funcs.
  • Struct for typed funcs.
  • Struct for typed funcs.
  • Struct for typed funcs.
  • Struct for typed funcs.
  • Struct for typed funcs.
  • Struct for typed funcs.
  • Struct for typed funcs.
  • Struct for typed funcs.
  • Struct for typed funcs.
  • Struct for typed funcs.
  • Struct for typed funcs.
  • Struct for typed funcs.
  • Struct for typed funcs.
  • Struct for typed funcs.
  • TODO(lachlan): Naming TBD. This contains the trampoline and invoke functions for a specific signature, as well as the environment that the invoke function may or may not require.

Traits§

  • Represents a function that can be converted to a vm::Func (function pointer) that can be called within WebAssembly.
  • This is just an empty trait to constrict that types that can be put into the third/fourth (depending if you include lifetimes) of the Func struct.
  • Represents a TrapEarly type.
  • Represents a list of WebAssembly values.

Type Aliases§

  • Aliases to an extern “C” type used to invoke a function.
  • Aliases to an extern “C” type used as a trampoline to a function.