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

The address of this Instruction.

Does this instruction represent a call?

Does this instruction represent a local jump?

Does this instruction represent a function return?

Provided Methods

Does this instruction terminate a BasicBlock?

Implementors