#[repr(C)]
pub struct X86Instruction { pub operation: InstructionOperation, pub operands: [X86Operand; 3], pub flags: u32, pub segment: SegmentRegister, pub length: usize, }
Expand description

An instruction.

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

Fields

operation: InstructionOperation

Which InstructionOperation this instruction is.

operands: [X86Operand; 3]

The operands for this instruction.

flags: u32

A bit field that may contain the flags described by X86Flag.

segment: SegmentRegister

The segment prefix. This will be either SegmentPrefix::DEFAULT or a segment register (like SegmentPrefix::ES).

length: usize

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.

Trait Implementations

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
The type of the operation for this instruction.
The type of the operands for this instruction.
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. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.