Struct capstone_rust::capstone::Instr [] [src]

pub struct Instr {
    pub id: InstrIdArch,
    pub address: u64,
    pub size: u16,
    pub bytes: Vec<u8>,
    pub mnemonic: String,
    pub op_str: String,
    pub detail: Option<Details>,
}

Disassembled instruction.

A Rust-friendly struct to access fields of a disassembled instruction. This is a safe wrapper over cs_insn.

Fields

Instruction ID. Find the instruction id in the '[ARCH]_insn' enum in the header file of corresponding architecture.

Address (EIP) of this instruction.

Size of this instruction.

Machine bytes of this instruction.

Ascii text of instruction mnemonic.

Ascii text of instruction operands.

Detail of this instuction.

Methods

impl Instr
[src]

[src]

Create an Instr from a cs_insn.

Trait Implementations

impl Debug for Instr
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Instr

impl Sync for Instr