Struct capstone::InsnDetail [−][src]
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 write registers
Returns the groups to which this instruction belongs
Architecture-specific detail