pub trait Instruction {
    type Operation: Operation;
    type Operand: Operand;

    fn operation(&self) -> Self::Operation;
    fn mnemonic(&self) -> &str;
    fn operands(&self) -> &[Self::Operand];
    fn length(&self) -> usize;
}
Expand description

An decoded instruction, including an Operation and its Operands.

An instruction represents the full amount of information that we have about the instruction that has been disassembled from the binary opcode data.

Required Associated Types

The type of the operation for this instruction.

The type of the operands for this instruction.

Required Methods

The operation carried out by this instruction.

The mnemonic for this instruction.

The operands for this instruction.

How many bytes in the binary opcode data are used by this instruction.

This can be used to continue disassembling at the next instruction. An invalid instruction may have a value of 0 here.

Implementors