pub fn emit_instruction<O: Write + ?Sized>(
    instruction: &Instruction,
    output: &mut O,
) -> Result<usize, EmitError> {
    match instruction {
        Instruction::Numeric(instruction) => emit_numeric_instruction(instruction, output),
        Instruction::Reference(instruction) => emit_reference_instruction(instruction, output),
        Instruction::Parametric(instruction) => emit_parametric_instruction(instruction, output),
        Instruction::Variable(instruction) => emit_variable_instruction(instruction, output),
        Instruction::Table(instruction) => emit_table_instruction(instruction, output),
        Instruction::Memory(instruction) => emit_memory_instruction(instruction, output),
        Instruction::Control(instruction) => emit_control_instruction(instruction, output),
    }
}
/// Emit an instruction to the output.
///
/// See https://webassembly.github.io/spec/core/binary/instructions.html#
Emit an instruction to the output.
Emit an instruction to the output .
pub fn emit_instruction<O: Write + ?Sized>(
    instruction: &Instruction,
    output: &mut O,
) -> Result<usize, EmitError> {
    match instruction {
        Instruction::Numeric(instruction) => emit_numeric_instruction(instruction, output),
        Instruction::Reference(instruction) => emit_reference_instruction(instruction, output),
        Instruction::Parametric(instruction) => emit_parametric_instruction(instruction, output),
        Instruction::Variable(instruction) => emit_variable_instruction(instruction, output),
        Instruction::Table(instruction) => emit_table_instruction(instruction, output),
        Instruction::Memory(instruction) => emit_memory_instruction(instruction, output),
        Instruction::Control(instruction) => emit_control_instruction(instruction, output),
    }
}
pub fn emit_instruction < O : Write + ? Sized > ( instruction : & Instruction , output : & mut O , ) -> Result < usize , EmitError > { match instruction { Instruction :: Numeric ( instruction ) => emit_numeric_instruction ( instruction , output ) , Instruction :: Reference ( instruction ) => emit_reference_instruction ( instruction , output ) , Instruction :: Parametric ( instruction ) => emit_parametric_instruction ( instruction , output ) , Instruction :: Variable ( instruction ) => emit_variable_instruction ( instruction , output ) , Instruction :: Table ( instruction ) => emit_table_instruction ( instruction , output ) , Instruction :: Memory ( instruction ) => emit_memory_instruction ( instruction , output ) , Instruction :: Control ( instruction ) => emit_control_instruction ( instruction , output ) , } }
Emit an instruction to the output.
Emit an instruction to the output .
instruction
&Instruction
output
&mut O
instruction
&Instruction
output
&mut O