Skip to main content

Module opcode

Module opcode 

Source
Expand description

Traits that define the injection behavior for wasm opcodes.

The Opcode trait is the primary interface for injecting instructions. Its methods are generated automatically from wasmparser::for_each_operator!, so new opcodes added to wasmparser are automatically available here without any manual additions.

Traitsยง

Inject
Defines Injection behavior at the current location of the Iterator
InjectAt
Defines Injection Behaviour at a given location
Instrumenter
Defines instrumentation behavior.
MacroOpcode
Additional convenience injection methods built on top of Opcode.
Opcode
Defines injection behavior for every Wasm instruction.