pub trait SymbolResolver {
    // Required method
    fn symbol(
        &mut self,
        instruction: &Instruction,
        operand: u32,
        instruction_operand: Option<u32>,
        address: u64,
        address_size: u32
    ) -> Option<SymbolResult<'_>>;
}
Expand description

Used by a Formatter to resolve symbols

Required Methods§

source

fn symbol( &mut self, instruction: &Instruction, operand: u32, instruction_operand: Option<u32>, address: u64, address_size: u32 ) -> Option<SymbolResult<'_>>

Tries to resolve a symbol

Arguments
  • instruction: Instruction
  • operand: Operand number, 0-based. This is a formatter operand and isn’t necessarily the same as an instruction operand.
  • instruction_operand: Instruction operand number, 0-based, or None if it’s an operand created by the formatter.
  • address: Address
  • address_size: Size of address in bytes (eg. 1, 2, 4 or 8)

Implementors§