pub struct InsnDetail<'a>(_, _);
Expand description

Contains architecture-independent details about an Insn.

To get more detail about the instruction, enable extra details for the Capstone instance with Capstone::set_detail(True) and use Capstone::insn_detail().

let cs = Capstone::new()
    .x86()
    .mode(arch::x86::ArchMode::Mode32)
    .detail(true) // needed to enable detail
    .build()
    .unwrap();
let insns = cs.disasm_all(b"\x90", 0x1000).unwrap();
for insn in insns.as_ref() {
    println!("{}", insn);
    let insn_detail: InsnDetail = cs.insn_detail(insn).unwrap();
    println!("    {:?}", insn_detail.groups());
}

Arch-specific detail

To get additional architecture-specific information, use the .arch_detail() method to get an ArchDetail enum.

Implementations

Returns the implicit read registers

Returns the implicit write registers

Returns the groups to which this instruction belongs

Architecture-specific detail

Trait Implementations

Formats the value using the given formatter. 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.