[−][src]Trait iced_x86::FormatterOptionsProvider
Can override options used by a Formatter
Required methods
fn operand_options(
&mut self,
instruction: &Instruction,
operand: u32,
instruction_operand: Option<u32>,
options: &mut FormatterOperandOptions,
number_options: &mut NumberFormattingOptions
)
&mut self,
instruction: &Instruction,
operand: u32,
instruction_operand: Option<u32>,
options: &mut FormatterOperandOptions,
number_options: &mut NumberFormattingOptions
)
Called by the formatter. The method can override any options before the formatter uses them.
Arguments
instruction
: Instructionoperand
: 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, orNone
if it's an operand created by the formatter.options
: Options. Only those options that will be used by the formatter are initialized.number_options
: Number formatting options