pub struct DefaultFastFormatterTraitOptions;Expand description
Default FastFormatter options
Trait Implementations
sourceimpl SpecializedFormatterTraitOptions for DefaultFastFormatterTraitOptions
impl SpecializedFormatterTraitOptions for DefaultFastFormatterTraitOptions
sourceconst ENABLE_SYMBOL_RESOLVER: bool = true
const ENABLE_SYMBOL_RESOLVER: bool = true
Set to true so symbol resolvers can be used
sourceconst ENABLE_DB_DW_DD_DQ: bool = true
const ENABLE_DB_DW_DD_DQ: bool = true
Enables support for formatting db, dw, dd, dq.
For fastest code, this should be disabled, not enabled.
sourcefn space_after_operand_separator(options: &FastFormatterOptions) -> bool
fn space_after_operand_separator(options: &FastFormatterOptions) -> bool
Add a space after the operand separator
| Default | Value | Example |
|---|---|---|
| _ | true | mov rax, rcx |
| 👍 | false | mov rax,rcx |
Arguments
options: Current formatter options
sourcefn rip_relative_addresses(options: &FastFormatterOptions) -> bool
fn rip_relative_addresses(options: &FastFormatterOptions) -> bool
Show RIP+displ or the virtual address
| Default | Value | Example |
|---|---|---|
| _ | true | mov eax,[rip+12345678h] |
| 👍 | false | mov eax,[1029384756AFBECDh] |
Arguments
options: Current formatter options
sourcefn use_pseudo_ops(options: &FastFormatterOptions) -> bool
fn use_pseudo_ops(options: &FastFormatterOptions) -> bool
Use pseudo instructions
| Default | Value | Example |
|---|---|---|
| 👍 | true | vcmpnltsd xmm2,xmm6,xmm3 |
| _ | false | vcmpsd xmm2,xmm6,xmm3,5h |
Arguments
options: Current formatter options
sourcefn show_symbol_address(options: &FastFormatterOptions) -> bool
fn show_symbol_address(options: &FastFormatterOptions) -> bool
Show the original value after the symbol name
| Default | Value | Example |
|---|---|---|
| _ | true | mov eax,[myfield (12345678)] |
| 👍 | false | mov eax,[myfield] |
Arguments
options: Current formatter options
sourcefn always_show_segment_register(options: &FastFormatterOptions) -> bool
fn always_show_segment_register(options: &FastFormatterOptions) -> bool
Always show the effective segment register. If the option is false, only show the segment register if
there’s a segment override prefix.
| Default | Value | Example |
|---|---|---|
| _ | true | mov eax,ds:[ecx] |
| 👍 | false | mov eax,[ecx] |
Arguments
options: Current formatter options
sourcefn always_show_memory_size(options: &FastFormatterOptions) -> bool
fn always_show_memory_size(options: &FastFormatterOptions) -> bool
Always show the size of memory operands
| Default | Value | Example | Example |
|---|---|---|---|
| _ | true | mov eax,dword ptr [ebx] | add byte ptr [eax],0x12 |
| 👍 | false | mov eax,[ebx] | add byte ptr [eax],0x12 |
Arguments
options: Current formatter options
sourcefn uppercase_hex(options: &FastFormatterOptions) -> bool
fn uppercase_hex(options: &FastFormatterOptions) -> bool
Use uppercase hex digits
| Default | Value | Example |
|---|---|---|
| 👍 | true | 0xFF |
| _ | false | 0xff |
Arguments
options: Current formatter options
sourcefn use_hex_prefix(options: &FastFormatterOptions) -> bool
fn use_hex_prefix(options: &FastFormatterOptions) -> bool
Use a hex prefix (0x) or a hex suffix (h)
| Default | Value | Example |
|---|---|---|
| _ | true | 0x5A |
| 👍 | false | 5Ah |
Arguments
options: Current formatter options
sourceunsafe fn verify_output_has_enough_bytes_left() -> bool
unsafe fn verify_output_has_enough_bytes_left() -> bool
The formatter makes sure that the
output string has at least 300 bytes left at
the start of format() and also after appending symbols to output. This is enough
space for all formatted instructions. Read moreAuto Trait Implementations
impl RefUnwindSafe for DefaultFastFormatterTraitOptions
impl Send for DefaultFastFormatterTraitOptions
impl Sync for DefaultFastFormatterTraitOptions
impl Unpin for DefaultFastFormatterTraitOptions
impl UnwindSafe for DefaultFastFormatterTraitOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
