Struct ropr::formatter::ColourFormatter
source · [−]pub struct ColourFormatter { /* private fields */ }
Implementations
Trait Implementations
sourceimpl Default for ColourFormatter
impl Default for ColourFormatter
sourcefn default() -> ColourFormatter
fn default() -> ColourFormatter
Returns the “default value” for a type. Read more
sourceimpl Display for ColourFormatter
impl Display for ColourFormatter
sourceimpl FormatterOutput for ColourFormatter
impl FormatterOutput for ColourFormatter
sourcefn write(&mut self, text: &str, kind: FormatterTextKind)
fn write(&mut self, text: &str, kind: FormatterTextKind)
Writes text and text kind Read more
sourcefn write_prefix(
&mut self,
instruction: &Instruction,
text: &str,
prefix: PrefixKind
)
fn write_prefix(
&mut self,
instruction: &Instruction,
text: &str,
prefix: PrefixKind
)
Writes a prefix Read more
sourcefn write_mnemonic(&mut self, instruction: &Instruction, text: &str)
fn write_mnemonic(&mut self, instruction: &Instruction, text: &str)
Writes a mnemonic (see Instruction::mnemonic()
) Read more
sourcefn write_number(
&mut self,
instruction: &Instruction,
operand: u32,
instruction_operand: Option<u32>,
text: &str,
value: u64,
number_kind: NumberKind,
kind: FormatterTextKind
)
fn write_number(
&mut self,
instruction: &Instruction,
operand: u32,
instruction_operand: Option<u32>,
text: &str,
value: u64,
number_kind: NumberKind,
kind: FormatterTextKind
)
Writes a number Read more
sourcefn write_decorator(
&mut self,
instruction: &Instruction,
operand: u32,
instruction_operand: Option<u32>,
text: &str,
decorator: DecoratorKind
)
fn write_decorator(
&mut self,
instruction: &Instruction,
operand: u32,
instruction_operand: Option<u32>,
text: &str,
decorator: DecoratorKind
)
Writes a decorator Read more
sourcefn write_register(
&mut self,
instruction: &Instruction,
operand: u32,
instruction_operand: Option<u32>,
text: &str,
register: Register
)
fn write_register(
&mut self,
instruction: &Instruction,
operand: u32,
instruction_operand: Option<u32>,
text: &str,
register: Register
)
Writes a register Read more
sourcefn write_symbol(
&mut self,
instruction: &Instruction,
operand: u32,
instruction_operand: Option<u32>,
address: u64,
symbol: &SymbolResult<'_>
)
fn write_symbol(
&mut self,
instruction: &Instruction,
operand: u32,
instruction_operand: Option<u32>,
address: u64,
symbol: &SymbolResult<'_>
)
Writes a symbol Read more
Auto Trait Implementations
impl RefUnwindSafe for ColourFormatter
impl Send for ColourFormatter
impl Sync for ColourFormatter
impl Unpin for ColourFormatter
impl UnwindSafe for ColourFormatter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more