logo
pub struct DefaultFastFormatterTraitOptions;
Expand description

Default FastFormatter options

Trait Implementations

Set to true so symbol resolvers can be used

Enables support for formatting db, dw, dd, dq.

For fastest code, this should be disabled, not enabled.

Add a space after the operand separator

DefaultValueExample
_truemov rax, rcx
👍falsemov rax,rcx
Arguments
  • options: Current formatter options

Show RIP+displ or the virtual address

DefaultValueExample
_truemov eax,[rip+12345678h]
👍falsemov eax,[1029384756AFBECDh]
Arguments
  • options: Current formatter options

Use pseudo instructions

DefaultValueExample
👍truevcmpnltsd xmm2,xmm6,xmm3
_falsevcmpsd xmm2,xmm6,xmm3,5h
Arguments
  • options: Current formatter options

Show the original value after the symbol name

DefaultValueExample
_truemov eax,[myfield (12345678)]
👍falsemov eax,[myfield]
Arguments
  • options: Current formatter options

Always show the effective segment register. If the option is false, only show the segment register if there’s a segment override prefix.

DefaultValueExample
_truemov eax,ds:[ecx]
👍falsemov eax,[ecx]
Arguments
  • options: Current formatter options

Always show the size of memory operands

DefaultValueExampleExample
_truemov eax,dword ptr [ebx]add byte ptr [eax],0x12
👍falsemov eax,[ebx]add byte ptr [eax],0x12
Arguments
  • options: Current formatter options

Use uppercase hex digits

DefaultValueExample
👍true0xFF
_false0xff
Arguments
  • options: Current formatter options

Use a hex prefix (0x) or a hex suffix (h)

DefaultValueExample
_true0x5A
👍false5Ah
Arguments
  • options: Current formatter options
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 more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.