Trait orca_wasm::opcode::Inject

source ·
pub trait Inject<'a> {
    // Required method
    fn inject(&mut self, instr: Operator<'a>);

    // Provided method
    fn inject_all(&mut self, instrs: &[Operator<'a>]) -> &mut Self { ... }
}
Expand description

Defines Injection behaviour at the current location of the Iterator

Required Methods§

source

fn inject(&mut self, instr: Operator<'a>)

Inject an operator at the current location

Provided Methods§

source

fn inject_all(&mut self, instrs: &[Operator<'a>]) -> &mut Self

Inject multiple operators at the current location

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'a> Inject<'a> for FunctionBuilder<'a>

source§

impl<'a, 'b> Inject<'b> for FunctionModifier<'a, 'b>

source§

impl<'a, 'b> Inject<'b> for ComponentIterator<'a, 'b>

source§

impl<'a, 'b> Inject<'b> for ModuleIterator<'a, 'b>