Modules

Structs

  • Compiled function: machine code body, jump table offsets, and unwind information.
  • The metadata for the compiled function.
  • Metadata to translate from binary offsets back to the original location found in the wasm input.
  • A helper structure used to assemble the final text section of an exectuable, plus unwinding information and other related details.
  • A record of a relocation to perform.

Enums

  • Destination function. Can be either user function or some special one, like memory.grow.

Constants

  • A custom code with TrapCode::User which is used by always-trap shims which indicates that, as expected, the always-trapping function indeed did trap. This effectively provides a better error message as opposed to a bland “unreachable code reached”
  • A custom code with TrapCode::User corresponding to being unable to reenter a component due to its reentrance limitations. This is used in component adapters to provide a more useful error message in such situations.

Traits

Functions