pub trait TracerDisassembler {
// Required methods
fn disassemble(&mut self, bytes: &[u8]) -> Result<()>;
fn disassemble_to_string(&mut self, bytes: &[u8]) -> Result<String>;
fn last_was_control_flow(&self) -> bool;
fn last_was_call(&self) -> bool;
fn last_was_ret(&self) -> bool;
fn last_was_cmp(&self) -> bool;
fn cmp(&self) -> Vec<CmpExpr>;
fn cmp_type(&self) -> Vec<CmpType>;
}Expand description
Trait for disassemblers of various architectures to implement to permit branch and compare tracing
Required Methods§
fn disassemble(&mut self, bytes: &[u8]) -> Result<()>
fn disassemble_to_string(&mut self, bytes: &[u8]) -> Result<String>
fn last_was_control_flow(&self) -> bool
fn last_was_call(&self) -> bool
fn last_was_ret(&self) -> bool
fn last_was_cmp(&self) -> bool
fn cmp(&self) -> Vec<CmpExpr>
fn cmp_type(&self) -> Vec<CmpType>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".