Struct burst::x86::X86Instruction
source · [−]#[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
sourceimpl Debug for X86Instruction
impl Debug for X86Instruction
sourceimpl Default for X86Instruction
impl Default for X86Instruction
sourcefn default() -> X86Instruction
fn default() -> X86Instruction
Returns the “default value” for a type. Read more
sourceimpl Instruction for X86Instruction
impl Instruction for X86Instruction
type Operation = InstructionOperation
type Operation = InstructionOperation
The type of the operation for this instruction.
type Operand = X86Operand
type Operand = X86Operand
The type of the operands for this instruction.
sourcefn operation(&self) -> InstructionOperation
fn operation(&self) -> InstructionOperation
The operation carried out by this instruction.
sourcefn operands(&self) -> &[X86Operand]
fn operands(&self) -> &[X86Operand]
The operands for this instruction.
Auto Trait Implementations
impl RefUnwindSafe for X86Instruction
impl Send for X86Instruction
impl Sync for X86Instruction
impl Unpin for X86Instruction
impl UnwindSafe for X86Instruction
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more