Trait disassemble::Instruction
[−]
[src]
pub trait Instruction: Debug { fn address(&self) -> Address; fn is_call(&self) -> bool; fn is_local_jump(&self) -> bool; fn is_return(&self) -> bool; fn is_block_terminator(&self) -> bool { ... } }
An assembly instruction, bytecode operation, VM operation, etc.
This trait will be implemented for a variety of backends and provides the general means by which the rest of the code in this library can be re-used.
Required Methods
fn address(&self) -> Address
The address of this Instruction
.
fn is_call(&self) -> bool
Does this instruction represent a call?
fn is_local_jump(&self) -> bool
Does this instruction represent a local jump?
fn is_return(&self) -> bool
Does this instruction represent a function return?
Provided Methods
fn is_block_terminator(&self) -> bool
Does this instruction terminate a BasicBlock
?