Trait pydis::opcode::Opcode[][src]

pub trait Opcode: From<Self::Mnemonic> + Send + Sync + FromPrimitive + ToPrimitive + Copy + Clone + Debug {
    type Mnemonic;
Show 13 methods fn has_arg(&self) -> bool;
fn has_extended_arg(&self) -> bool;
fn has_const(&self) -> bool;
fn has_comp(&self) -> bool;
fn is_other_conditional_jump(&self) -> bool;
fn is_relative_jump(&self) -> bool;
fn is_absolute_jump(&self) -> bool;
fn is_conditional_jump(&self) -> bool;
fn has_name(&self) -> bool;
fn has_local(&self) -> bool;
fn has_free(&self) -> bool;
fn mnemonic(&self) -> Self::Mnemonic; fn is_jump(&self) -> bool { ... }
}
Expand description

Trait that provides convenience routines for opcode properties such as whether or not it has an argument, is a jump, etc.

Associated Types

Required methods

Whether or not this opcode has an argument

Whether or not this opcode has an extended argument

Whether or not this opcode has a constant parameter

Whether or not this opcode is a boolean operation

Whether or not this opcode has a relative jump target

Whether or not this opcode has an absolute jump target

Whether or not this opcode is a conditional jump

Whether or not this opcode accesses an attribute by name

Whether or not this opcode accesses a local variable

Whether or not this opcode accesses a free variable

Provided methods

Whether or not this opcode is any kind of instruction which may jump

Implementors