[−][src]Struct iced_x86::FormatterOptions
Formatter options
Implementations
impl FormatterOptions
[src]
#[must_use]pub fn new() -> Self
[src]
Creates default formatter options
#[must_use]pub fn with_gas() -> Self
[src]
Creates default gas (AT&T) formatter options
#[must_use]pub fn with_intel() -> Self
[src]
Creates default Intel (XED) formatter options
#[must_use]pub fn with_masm() -> Self
[src]
Creates default masm formatter options
#[must_use]pub fn with_nasm() -> Self
[src]
Creates default nasm formatter options
#[must_use]pub fn uppercase_prefixes(&self) -> bool
[src]
Prefixes are upper cased
Default | Value | Example |
---|---|---|
true | REP stosd | |
✔️ | false | rep stosd |
pub fn set_uppercase_prefixes(&mut self, value: bool)
[src]
Prefixes are upper cased
Default | Value | Example |
---|---|---|
true | REP stosd | |
✔️ | false | rep stosd |
Arguments
value
: New value
#[must_use]pub fn uppercase_mnemonics(&self) -> bool
[src]
Mnemonics are upper cased
Default | Value | Example |
---|---|---|
true | MOV rcx,rax | |
✔️ | false | mov rcx,rax |
pub fn set_uppercase_mnemonics(&mut self, value: bool)
[src]
Mnemonics are upper cased
Default | Value | Example |
---|---|---|
true | MOV rcx,rax | |
✔️ | false | mov rcx,rax |
Arguments
value
: New value
#[must_use]pub fn uppercase_registers(&self) -> bool
[src]
Registers are upper cased
Default | Value | Example |
---|---|---|
true | mov RCX,[RAX+RDX*8] | |
✔️ | false | mov rcx,[rax+rdx*8] |
pub fn set_uppercase_registers(&mut self, value: bool)
[src]
Registers are upper cased
Default | Value | Example |
---|---|---|
true | mov RCX,[RAX+RDX*8] | |
✔️ | false | mov rcx,[rax+rdx*8] |
Arguments
value
: New value
#[must_use]pub fn uppercase_keywords(&self) -> bool
[src]
Keywords are upper cased (eg. BYTE PTR
, SHORT
)
Default | Value | Example |
---|---|---|
true | mov BYTE PTR [rcx],12h | |
✔️ | false | mov byte ptr [rcx],12h |
pub fn set_uppercase_keywords(&mut self, value: bool)
[src]
Keywords are upper cased (eg. BYTE PTR
, SHORT
)
Default | Value | Example |
---|---|---|
true | mov BYTE PTR [rcx],12h | |
✔️ | false | mov byte ptr [rcx],12h |
Arguments
value
: New value
#[must_use]pub fn uppercase_decorators(&self) -> bool
[src]
Upper case decorators, eg. {z}
, {sae}
, {rd-sae}
(but not op mask registers: {k1}
)
Default | Value | Example |
---|---|---|
true | vunpcklps xmm2{k5}{Z},xmm6,dword bcst [rax+4] | |
✔️ | false | vunpcklps xmm2{k5}{z},xmm6,dword bcst [rax+4] |
pub fn set_uppercase_decorators(&mut self, value: bool)
[src]
Upper case decorators, eg. {z}
, {sae}
, {rd-sae}
(but not op mask registers: {k1}
)
Default | Value | Example |
---|---|---|
true | vunpcklps xmm2{k5}{Z},xmm6,dword bcst [rax+4] | |
✔️ | false | vunpcklps xmm2{k5}{z},xmm6,dword bcst [rax+4] |
Arguments
value
: New value
#[must_use]pub fn uppercase_all(&self) -> bool
[src]
Everything is upper cased, except numbers and their prefixes/suffixes
Default | Value | Example |
---|---|---|
true | MOV EAX,GS:[RCX*4+0ffh] | |
✔️ | false | mov eax,gs:[rcx*4+0ffh] |
pub fn set_uppercase_all(&mut self, value: bool)
[src]
Everything is upper cased, except numbers and their prefixes/suffixes
Default | Value | Example |
---|---|---|
true | MOV EAX,GS:[RCX*4+0ffh] | |
✔️ | false | mov eax,gs:[rcx*4+0ffh] |
Arguments
value
: New value
#[must_use]pub fn first_operand_char_index(&self) -> u32
[src]
Character index (0-based) where the first operand is formatted. Can be set to 0 to format it immediately after the mnemonic. At least one space or tab is always added between the mnemonic and the first operand.
Default | Value | Example |
---|---|---|
✔️ | 0 | mov•rcx,rbp |
8 | mov•••••rcx,rbp |
pub fn set_first_operand_char_index(&mut self, value: u32)
[src]
Character index (0-based) where the first operand is formatted. Can be set to 0 to format it immediately after the mnemonic. At least one space or tab is always added between the mnemonic and the first operand.
Default | Value | Example |
---|---|---|
✔️ | 0 | mov•rcx,rbp |
8 | mov•••••rcx,rbp |
Arguments
value
: New value
#[must_use]pub fn tab_size(&self) -> u32
[src]
Size of a tab character or 0 to use spaces
- Default:
0
pub fn set_tab_size(&mut self, value: u32)
[src]
#[must_use]pub fn space_after_operand_separator(&self) -> bool
[src]
Add a space after the operand separator
Default | Value | Example |
---|---|---|
true | mov rax, rcx | |
✔️ | false | mov rax,rcx |
pub fn set_space_after_operand_separator(&mut self, value: bool)
[src]
Add a space after the operand separator
Default | Value | Example |
---|---|---|
true | mov rax, rcx | |
✔️ | false | mov rax,rcx |
Arguments
value
: New value
#[must_use]pub fn space_after_memory_bracket(&self) -> bool
[src]
Add a space between the memory expression and the brackets
Default | Value | Example |
---|---|---|
true | mov eax,[ rcx+rdx ] | |
✔️ | false | mov eax,[rcx+rdx] |
pub fn set_space_after_memory_bracket(&mut self, value: bool)
[src]
Add a space between the memory expression and the brackets
Default | Value | Example |
---|---|---|
true | mov eax,[ rcx+rdx ] | |
✔️ | false | mov eax,[rcx+rdx] |
Arguments
value
: New value
#[must_use]pub fn space_between_memory_add_operators(&self) -> bool
[src]
Add spaces between memory operand +
and -
operators
Default | Value | Example |
---|---|---|
true | mov eax,[rcx + rdx*8 - 80h] | |
✔️ | false | mov eax,[rcx+rdx*8-80h] |
pub fn set_space_between_memory_add_operators(&mut self, value: bool)
[src]
Add spaces between memory operand +
and -
operators
Default | Value | Example |
---|---|---|
true | mov eax,[rcx + rdx*8 - 80h] | |
✔️ | false | mov eax,[rcx+rdx*8-80h] |
Arguments
value
: New value
#[must_use]pub fn space_between_memory_mul_operators(&self) -> bool
[src]
Add spaces between memory operand *
operator
Default | Value | Example |
---|---|---|
true | mov eax,[rcx+rdx * 8-80h] | |
✔️ | false | mov eax,[rcx+rdx*8-80h] |
pub fn set_space_between_memory_mul_operators(&mut self, value: bool)
[src]
Add spaces between memory operand *
operator
Default | Value | Example |
---|---|---|
true | mov eax,[rcx+rdx * 8-80h] | |
✔️ | false | mov eax,[rcx+rdx*8-80h] |
Arguments
value
: New value
#[must_use]pub fn scale_before_index(&self) -> bool
[src]
Show memory operand scale value before the index register
Default | Value | Example |
---|---|---|
true | mov eax,[8*rdx] | |
✔️ | false | mov eax,[rdx*8] |
pub fn set_scale_before_index(&mut self, value: bool)
[src]
Show memory operand scale value before the index register
Default | Value | Example |
---|---|---|
true | mov eax,[8*rdx] | |
✔️ | false | mov eax,[rdx*8] |
Arguments
value
: New value
#[must_use]pub fn always_show_scale(&self) -> bool
[src]
Always show the scale value even if it's *1
Default | Value | Example |
---|---|---|
true | mov eax,[rbx+rcx*1] | |
✔️ | false | mov eax,[rbx+rcx] |
pub fn set_always_show_scale(&mut self, value: bool)
[src]
Always show the scale value even if it's *1
Default | Value | Example |
---|---|---|
true | mov eax,[rbx+rcx*1] | |
✔️ | false | mov eax,[rbx+rcx] |
Arguments
value
: New value
#[must_use]pub fn always_show_segment_register(&self) -> bool
[src]
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] |
pub fn set_always_show_segment_register(&mut self, value: bool)
[src]
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
value
: New value
#[must_use]pub fn show_zero_displacements(&self) -> bool
[src]
Show zero displacements
Default | Value | Example |
---|---|---|
true | mov eax,[rcx*2+0] | |
✔️ | false | mov eax,[rcx*2] |
pub fn set_show_zero_displacements(&mut self, value: bool)
[src]
Show zero displacements
Default | Value | Example |
---|---|---|
true | mov eax,[rcx*2+0] | |
✔️ | false | mov eax,[rcx*2] |
Arguments
value
: New value
#[must_use]pub fn hex_prefix(&self) -> &str
[src]
Hex number prefix or an empty string, eg. "0x"
- Default:
""
(masm/nasm/intel),"0x"
(gas)
pub fn set_hex_prefix(&mut self, value: &'static str)
[src]
Hex number prefix or an empty string, eg. "0x"
- Default:
""
(masm/nasm/intel),"0x"
(gas)
Arguments
value
: New value
pub fn set_hex_prefix_string(&mut self, value: String)
[src]
Hex number prefix or an empty string, eg. "0x"
- Default:
""
(masm/nasm/intel),"0x"
(gas)
Arguments
value
: New value
#[must_use]pub fn hex_suffix(&self) -> &str
[src]
Hex number suffix or an empty string, eg. "h"
- Default:
"h"
(masm/nasm/intel),""
(gas)
pub fn set_hex_suffix(&mut self, value: &'static str)
[src]
Hex number suffix or an empty string, eg. "h"
- Default:
"h"
(masm/nasm/intel),""
(gas)
Arguments
value
: New value
pub fn set_hex_suffix_string(&mut self, value: String)
[src]
Hex number suffix or an empty string, eg. "h"
- Default:
"h"
(masm/nasm/intel),""
(gas)
Arguments
value
: New value
#[must_use]pub fn hex_digit_group_size(&self) -> u32
[src]
Size of a digit group, see also digit_separator()
Default | Value | Example |
---|---|---|
0 | 0x12345678 | |
✔️ | 4 | 0x1234_5678 |
pub fn set_hex_digit_group_size(&mut self, value: u32)
[src]
Size of a digit group, see also digit_separator()
Default | Value | Example |
---|---|---|
0 | 0x12345678 | |
✔️ | 4 | 0x1234_5678 |
Arguments
value
: New value
#[must_use]pub fn decimal_prefix(&self) -> &str
[src]
Decimal number prefix or an empty string
- Default:
""
pub fn set_decimal_prefix(&mut self, value: &'static str)
[src]
pub fn set_decimal_prefix_string(&mut self, value: String)
[src]
#[must_use]pub fn decimal_suffix(&self) -> &str
[src]
Decimal number suffix or an empty string
- Default:
""
pub fn set_decimal_suffix(&mut self, value: &'static str)
[src]
pub fn set_decimal_suffix_string(&mut self, value: String)
[src]
#[must_use]pub fn decimal_digit_group_size(&self) -> u32
[src]
Size of a digit group, see also digit_separator()
Default | Value | Example |
---|---|---|
0 | 12345678 | |
✔️ | 3 | 12_345_678 |
pub fn set_decimal_digit_group_size(&mut self, value: u32)
[src]
Size of a digit group, see also digit_separator()
Default | Value | Example |
---|---|---|
0 | 12345678 | |
✔️ | 3 | 12_345_678 |
Arguments
value
: New value
#[must_use]pub fn octal_prefix(&self) -> &str
[src]
Octal number prefix or an empty string
- Default:
""
(masm/nasm/intel),"0"
(gas)
pub fn set_octal_prefix(&mut self, value: &'static str)
[src]
Octal number prefix or an empty string
- Default:
""
(masm/nasm/intel),"0"
(gas)
Arguments
value
: New value
pub fn set_octal_prefix_string(&mut self, value: String)
[src]
Octal number prefix or an empty string
- Default:
""
(masm/nasm/intel),"0"
(gas)
Arguments
value
: New value
#[must_use]pub fn octal_suffix(&self) -> &str
[src]
Octal number suffix or an empty string
- Default:
"o"
(masm/nasm/intel),""
(gas)
pub fn set_octal_suffix(&mut self, value: &'static str)
[src]
Octal number suffix or an empty string
- Default:
"o"
(masm/nasm/intel),""
(gas)
Arguments
value
: New value
pub fn set_octal_suffix_string(&mut self, value: String)
[src]
Octal number suffix or an empty string
- Default:
"o"
(masm/nasm/intel),""
(gas)
Arguments
value
: New value
#[must_use]pub fn octal_digit_group_size(&self) -> u32
[src]
Size of a digit group, see also digit_separator()
Default | Value | Example |
---|---|---|
0 | 12345670 | |
✔️ | 4 | 1234_5670 |
pub fn set_octal_digit_group_size(&mut self, value: u32)
[src]
Size of a digit group, see also digit_separator()
Default | Value | Example |
---|---|---|
0 | 12345670 | |
✔️ | 4 | 1234_5670 |
Arguments
value
: New value
#[must_use]pub fn binary_prefix(&self) -> &str
[src]
Binary number prefix or an empty string
- Default:
""
(masm/nasm/intel),"0b"
(gas)
pub fn set_binary_prefix(&mut self, value: &'static str)
[src]
Binary number prefix or an empty string
- Default:
""
(masm/nasm/intel),"0b"
(gas)
Arguments
value
: New value
pub fn set_binary_prefix_string(&mut self, value: String)
[src]
Binary number prefix or an empty string
- Default:
""
(masm/nasm/intel),"0b"
(gas)
Arguments
value
: New value
#[must_use]pub fn binary_suffix(&self) -> &str
[src]
Binary number suffix or an empty string
- Default:
"b"
(masm/nasm/intel),""
(gas)
pub fn set_binary_suffix(&mut self, value: &'static str)
[src]
Binary number suffix or an empty string
- Default:
"b"
(masm/nasm/intel),""
(gas)
Arguments
value
: New value
pub fn set_binary_suffix_string(&mut self, value: String)
[src]
Binary number suffix or an empty string
- Default:
"b"
(masm/nasm/intel),""
(gas)
Arguments
value
: New value
#[must_use]pub fn binary_digit_group_size(&self) -> u32
[src]
Size of a digit group, see also digit_separator()
Default | Value | Example |
---|---|---|
0 | 11010111 | |
✔️ | 4 | 1101_0111 |
pub fn set_binary_digit_group_size(&mut self, value: u32)
[src]
Size of a digit group, see also digit_separator()
Default | Value | Example |
---|---|---|
0 | 11010111 | |
✔️ | 4 | 1101_0111 |
Arguments
value
: New value
#[must_use]pub fn digit_separator(&self) -> &str
[src]
Digit separator or an empty string. See also eg. hex_digit_group_size()
Default | Value | Example |
---|---|---|
✔️ | "" | 0x12345678 |
"_" | 0x1234_5678 |
pub fn set_digit_separator(&mut self, value: &'static str)
[src]
Digit separator or an empty string. See also eg. hex_digit_group_size()
Default | Value | Example |
---|---|---|
✔️ | "" | 0x12345678 |
"_" | 0x1234_5678 |
Arguments
value
: New value
pub fn set_digit_separator_string(&mut self, value: String)
[src]
Digit separator or an empty string. See also eg. hex_digit_group_size()
Default | Value | Example |
---|---|---|
✔️ | "" | 0x12345678 |
"_" | 0x1234_5678 |
Arguments
value
: New value
#[must_use]pub fn leading_zeroes(&self) -> bool
[src]
Add leading zeroes to hexadecimal/octal/binary numbers.
This option has no effect on branch targets and displacements, use branch_leading_zeroes
and displacement_leading_zeroes
.
Default | Value | Example |
---|---|---|
true | 0x0000000A /0000000Ah | |
✔️ | false | 0xA /0Ah |
pub fn set_leading_zeroes(&mut self, value: bool)
[src]
Add leading zeroes to hexadecimal/octal/binary numbers.
This option has no effect on branch targets and displacements, use branch_leading_zeroes
and displacement_leading_zeroes
.
Default | Value | Example |
---|---|---|
true | 0x0000000A /0000000Ah | |
✔️ | false | 0xA /0Ah |
Arguments
value
: New value
#[must_use]pub fn uppercase_hex(&self) -> bool
[src]
Use upper case hex digits
Default | Value | Example |
---|---|---|
✔️ | true | 0xFF |
false | 0xff |
pub fn set_uppercase_hex(&mut self, value: bool)
[src]
#[must_use]pub fn small_hex_numbers_in_decimal(&self) -> bool
[src]
Small hex numbers (-9 .. 9) are shown in decimal
Default | Value | Example |
---|---|---|
✔️ | true | 9 |
false | 0x9 |
pub fn set_small_hex_numbers_in_decimal(&mut self, value: bool)
[src]
Small hex numbers (-9 .. 9) are shown in decimal
Default | Value | Example |
---|---|---|
✔️ | true | 9 |
false | 0x9 |
Arguments
value
: New value
#[must_use]pub fn add_leading_zero_to_hex_numbers(&self) -> bool
[src]
Add a leading zero to hex numbers if there's no prefix and the number starts with hex digits A-F
Default | Value | Example |
---|---|---|
✔️ | true | 0FFh |
false | FFh |
pub fn set_add_leading_zero_to_hex_numbers(&mut self, value: bool)
[src]
Add a leading zero to hex numbers if there's no prefix and the number starts with hex digits A-F
Default | Value | Example |
---|---|---|
✔️ | true | 0FFh |
false | FFh |
Arguments
value
: New value
#[must_use]pub fn number_base(&self) -> NumberBase
[src]
Number base
- Default:
Hexadecimal
pub fn set_number_base(&mut self, value: NumberBase)
[src]
#[must_use]pub fn branch_leading_zeroes(&self) -> bool
[src]
Add leading zeroes to branch offsets. Used by CALL NEAR
, CALL FAR
, JMP NEAR
, JMP FAR
, Jcc
, LOOP
, LOOPcc
, XBEGIN
Default | Value | Example |
---|---|---|
✔️ | true | je 00000123h |
false | je 123h |
pub fn set_branch_leading_zeroes(&mut self, value: bool)
[src]
Add leading zeroes to branch offsets. Used by CALL NEAR
, CALL FAR
, JMP NEAR
, JMP FAR
, Jcc
, LOOP
, LOOPcc
, XBEGIN
Default | Value | Example |
---|---|---|
✔️ | true | je 00000123h |
false | je 123h |
Arguments
value
: New value
#[must_use]pub fn signed_immediate_operands(&self) -> bool
[src]
Show immediate operands as signed numbers
Default | Value | Example |
---|---|---|
true | mov eax,-1 | |
✔️ | false | mov eax,FFFFFFFF |
pub fn set_signed_immediate_operands(&mut self, value: bool)
[src]
Show immediate operands as signed numbers
Default | Value | Example |
---|---|---|
true | mov eax,-1 | |
✔️ | false | mov eax,FFFFFFFF |
Arguments
value
: New value
#[must_use]pub fn signed_memory_displacements(&self) -> bool
[src]
Displacements are signed numbers
Default | Value | Example |
---|---|---|
✔️ | true | mov al,[eax-2000h] |
false | mov al,[eax+0FFFFE000h] |
pub fn set_signed_memory_displacements(&mut self, value: bool)
[src]
Displacements are signed numbers
Default | Value | Example |
---|---|---|
✔️ | true | mov al,[eax-2000h] |
false | mov al,[eax+0FFFFE000h] |
Arguments
value
: New value
#[must_use]pub fn displacement_leading_zeroes(&self) -> bool
[src]
Add leading zeroes to displacements
Default | Value | Example |
---|---|---|
true | mov al,[eax+00000012h] | |
✔️ | false | mov al,[eax+12h] |
pub fn set_displacement_leading_zeroes(&mut self, value: bool)
[src]
Add leading zeroes to displacements
Default | Value | Example |
---|---|---|
true | mov al,[eax+00000012h] | |
✔️ | false | mov al,[eax+12h] |
Arguments
value
: New value
#[must_use]pub fn memory_size_options(&self) -> MemorySizeOptions
[src]
Options that control if the memory size (eg. DWORD PTR
) is shown or not.
This is ignored by the gas (AT&T) formatter.
- Default:
Default
pub fn set_memory_size_options(&mut self, value: MemorySizeOptions)
[src]
Options that control if the memory size (eg. DWORD PTR
) is shown or not.
This is ignored by the gas (AT&T) formatter.
- Default:
Default
Arguments
value
: New value
#[must_use]pub fn rip_relative_addresses(&self) -> bool
[src]
Show RIP+displ
or the virtual address
Default | Value | Example |
---|---|---|
true | mov eax,[rip+12345678h] | |
✔️ | false | mov eax,[1029384756AFBECDh] |
pub fn set_rip_relative_addresses(&mut self, value: bool)
[src]
Show RIP+displ
or the virtual address
Default | Value | Example |
---|---|---|
true | mov eax,[rip+12345678h] | |
✔️ | false | mov eax,[1029384756AFBECDh] |
Arguments
value
: New value
#[must_use]pub fn show_branch_size(&self) -> bool
[src]
Show NEAR
, SHORT
, etc if it's a branch instruction
Default | Value | Example |
---|---|---|
✔️ | true | je short 1234h |
false | je 1234h |
pub fn set_show_branch_size(&mut self, value: bool)
[src]
Show NEAR
, SHORT
, etc if it's a branch instruction
Default | Value | Example |
---|---|---|
✔️ | true | je short 1234h |
false | je 1234h |
Arguments
value
: New value
#[must_use]pub fn use_pseudo_ops(&self) -> bool
[src]
Use pseudo instructions
Default | Value | Example |
---|---|---|
✔️ | true | vcmpnltsd xmm2,xmm6,xmm3 |
false | vcmpsd xmm2,xmm6,xmm3,5 |
pub fn set_use_pseudo_ops(&mut self, value: bool)
[src]
Use pseudo instructions
Default | Value | Example |
---|---|---|
✔️ | true | vcmpnltsd xmm2,xmm6,xmm3 |
false | vcmpsd xmm2,xmm6,xmm3,5 |
Arguments
value
: New value
#[must_use]pub fn show_symbol_address(&self) -> bool
[src]
Show the original value after the symbol name
Default | Value | Example |
---|---|---|
true | mov eax,[myfield (12345678)] | |
✔️ | false | mov eax,[myfield] |
pub fn set_show_symbol_address(&mut self, value: bool)
[src]
Show the original value after the symbol name
Default | Value | Example |
---|---|---|
true | mov eax,[myfield (12345678)] | |
✔️ | false | mov eax,[myfield] |
Arguments
value
: New value
#[must_use]pub fn gas_naked_registers(&self) -> bool
[src]
(gas only): If true
, the formatter doesn't add %
to registers
Default | Value | Example |
---|---|---|
true | mov eax,ecx | |
✔️ | false | mov %eax,%ecx |
pub fn set_gas_naked_registers(&mut self, value: bool)
[src]
(gas only): If true
, the formatter doesn't add %
to registers
Default | Value | Example |
---|---|---|
true | mov eax,ecx | |
✔️ | false | mov %eax,%ecx |
Arguments
value
: New value
#[must_use]pub fn gas_show_mnemonic_size_suffix(&self) -> bool
[src]
(gas only): Shows the mnemonic size suffix even when not needed
Default | Value | Example |
---|---|---|
true | movl %eax,%ecx | |
✔️ | false | mov %eax,%ecx |
pub fn set_gas_show_mnemonic_size_suffix(&mut self, value: bool)
[src]
(gas only): Shows the mnemonic size suffix even when not needed
Default | Value | Example |
---|---|---|
true | movl %eax,%ecx | |
✔️ | false | mov %eax,%ecx |
Arguments
value
: New value
#[must_use]pub fn gas_space_after_memory_operand_comma(&self) -> bool
[src]
(gas only): Add a space after the comma if it's a memory operand
Default | Value | Example |
---|---|---|
true | (%eax, %ecx, 2) | |
✔️ | false | (%eax,%ecx,2) |
pub fn set_gas_space_after_memory_operand_comma(&mut self, value: bool)
[src]
(gas only): Add a space after the comma if it's a memory operand
Default | Value | Example |
---|---|---|
true | (%eax, %ecx, 2) | |
✔️ | false | (%eax,%ecx,2) |
Arguments
value
: New value
#[must_use]pub fn masm_add_ds_prefix32(&self) -> bool
[src]
(masm only): Add a DS
segment override even if it's not present. Used if it's 16/32-bit code and mem op is a displ
Default | Value | Example |
---|---|---|
✔️ | true | mov eax,ds:[12345678] |
false | mov eax,[12345678] |
pub fn set_masm_add_ds_prefix32(&mut self, value: bool)
[src]
(masm only): Add a DS
segment override even if it's not present. Used if it's 16/32-bit code and mem op is a displ
Default | Value | Example |
---|---|---|
✔️ | true | mov eax,ds:[12345678] |
false | mov eax,[12345678] |
Arguments
value
: New value
#[must_use]pub fn masm_symbol_displ_in_brackets(&self) -> bool
[src]
(masm only): Show symbols in brackets
Default | Value | Example |
---|---|---|
✔️ | true | [ecx+symbol] / [symbol] |
false | symbol[ecx] / symbol |
pub fn set_masm_symbol_displ_in_brackets(&mut self, value: bool)
[src]
(masm only): Show symbols in brackets
Default | Value | Example |
---|---|---|
✔️ | true | [ecx+symbol] / [symbol] |
false | symbol[ecx] / symbol |
Arguments
value
: New value
#[must_use]pub fn masm_displ_in_brackets(&self) -> bool
[src]
(masm only): Show displacements in brackets
Default | Value | Example |
---|---|---|
✔️ | true | [ecx+1234h] |
false | 1234h[ecx] |
pub fn set_masm_displ_in_brackets(&mut self, value: bool)
[src]
(masm only): Show displacements in brackets
Default | Value | Example |
---|---|---|
✔️ | true | [ecx+1234h] |
false | 1234h[ecx] |
Arguments
value
: New value
#[must_use]pub fn nasm_show_sign_extended_immediate_size(&self) -> bool
[src]
(nasm only): Shows BYTE
, WORD
, DWORD
or QWORD
if it's a sign extended immediate operand value
Default | Value | Example |
---|---|---|
true | or rcx,byte -1 | |
✔️ | false | or rcx,-1 |
pub fn set_nasm_show_sign_extended_immediate_size(&mut self, value: bool)
[src]
(nasm only): Shows BYTE
, WORD
, DWORD
or QWORD
if it's a sign extended immediate operand value
Default | Value | Example |
---|---|---|
true | or rcx,byte -1 | |
✔️ | false | or rcx,-1 |
Arguments
value
: New value
#[must_use]pub fn prefer_st0(&self) -> bool
[src]
Use st(0)
instead of st
if st
can be used. Ignored by the nasm formatter.
Default | Value | Example |
---|---|---|
true | fadd st(0),st(3) | |
✔️ | false | fadd st,st(3) |
pub fn set_prefer_st0(&mut self, value: bool)
[src]
Use st(0)
instead of st
if st
can be used. Ignored by the nasm formatter.
Default | Value | Example |
---|---|---|
true | fadd st(0),st(3) | |
✔️ | false | fadd st,st(3) |
Arguments
value
: New value
#[must_use]pub fn show_useless_prefixes(&self) -> bool
[src]
Show useless prefixes. If it has useless prefixes, it could be data and not code.
Default | Value | Example |
---|---|---|
true | es rep add eax,ecx | |
✔️ | false | add eax,ecx |
pub fn set_show_useless_prefixes(&mut self, value: bool)
[src]
Show useless prefixes. If it has useless prefixes, it could be data and not code.
Default | Value | Example |
---|---|---|
true | es rep add eax,ecx | |
✔️ | false | add eax,ecx |
Arguments
value
: New value
#[must_use]pub fn cc_b(&self) -> CC_b
[src]
Mnemonic condition code selector (eg. JB
/ JC
/ JNAE
)
Default: JB
, CMOVB
, SETB
pub fn set_cc_b(&mut self, value: CC_b)
[src]
Mnemonic condition code selector (eg. JB
/ JC
/ JNAE
)
Default: JB
, CMOVB
, SETB
Arguments
value
: New value
#[must_use]pub fn cc_ae(&self) -> CC_ae
[src]
Mnemonic condition code selector (eg. JAE
/ JNB
/ JNC
)
Default: JAE
, CMOVAE
, SETAE
pub fn set_cc_ae(&mut self, value: CC_ae)
[src]
Mnemonic condition code selector (eg. JAE
/ JNB
/ JNC
)
Default: JAE
, CMOVAE
, SETAE
Arguments
value
: New value
#[must_use]pub fn cc_e(&self) -> CC_e
[src]
Mnemonic condition code selector (eg. JE
/ JZ
)
Default: JE
, CMOVE
, SETE
, LOOPE
, REPE
pub fn set_cc_e(&mut self, value: CC_e)
[src]
Mnemonic condition code selector (eg. JE
/ JZ
)
Default: JE
, CMOVE
, SETE
, LOOPE
, REPE
Arguments
value
: New value
#[must_use]pub fn cc_ne(&self) -> CC_ne
[src]
Mnemonic condition code selector (eg. JNE
/ JNZ
)
Default: JNE
, CMOVNE
, SETNE
, LOOPNE
, REPNE
pub fn set_cc_ne(&mut self, value: CC_ne)
[src]
Mnemonic condition code selector (eg. JNE
/ JNZ
)
Default: JNE
, CMOVNE
, SETNE
, LOOPNE
, REPNE
Arguments
value
: New value
#[must_use]pub fn cc_be(&self) -> CC_be
[src]
Mnemonic condition code selector (eg. JBE
/ JNA
)
Default: JBE
, CMOVBE
, SETBE
pub fn set_cc_be(&mut self, value: CC_be)
[src]
Mnemonic condition code selector (eg. JBE
/ JNA
)
Default: JBE
, CMOVBE
, SETBE
Arguments
value
: New value
#[must_use]pub fn cc_a(&self) -> CC_a
[src]
Mnemonic condition code selector (eg. JA
/ JNBE
)
Default: JA
, CMOVA
, SETA
pub fn set_cc_a(&mut self, value: CC_a)
[src]
Mnemonic condition code selector (eg. JA
/ JNBE
)
Default: JA
, CMOVA
, SETA
Arguments
value
: New value
#[must_use]pub fn cc_p(&self) -> CC_p
[src]
Mnemonic condition code selector (eg. JP
/ JPE
)
Default: JP
, CMOVP
, SETP
pub fn set_cc_p(&mut self, value: CC_p)
[src]
#[must_use]pub fn cc_np(&self) -> CC_np
[src]
Mnemonic condition code selector (eg. JNP
/ JPO
)
Default: JNP
, CMOVNP
, SETNP
pub fn set_cc_np(&mut self, value: CC_np)
[src]
Mnemonic condition code selector (eg. JNP
/ JPO
)
Default: JNP
, CMOVNP
, SETNP
Arguments
value
: New value
#[must_use]pub fn cc_l(&self) -> CC_l
[src]
Mnemonic condition code selector (eg. JL
/ JNGE
)
Default: JL
, CMOVL
, SETL
pub fn set_cc_l(&mut self, value: CC_l)
[src]
Mnemonic condition code selector (eg. JL
/ JNGE
)
Default: JL
, CMOVL
, SETL
Arguments
value
: New value
#[must_use]pub fn cc_ge(&self) -> CC_ge
[src]
Mnemonic condition code selector (eg. JGE
/ JNL
)
Default: JGE
, CMOVGE
, SETGE
pub fn set_cc_ge(&mut self, value: CC_ge)
[src]
Mnemonic condition code selector (eg. JGE
/ JNL
)
Default: JGE
, CMOVGE
, SETGE
Arguments
value
: New value
#[must_use]pub fn cc_le(&self) -> CC_le
[src]
Mnemonic condition code selector (eg. JLE
/ JNG
)
Default: JLE
, CMOVLE
, SETLE
pub fn set_cc_le(&mut self, value: CC_le)
[src]
Mnemonic condition code selector (eg. JLE
/ JNG
)
Default: JLE
, CMOVLE
, SETLE
Arguments
value
: New value
#[must_use]pub fn cc_g(&self) -> CC_g
[src]
Mnemonic condition code selector (eg. JG
/ JNLE
)
Default: JG
, CMOVG
, SETG
pub fn set_cc_g(&mut self, value: CC_g)
[src]
Mnemonic condition code selector (eg. JG
/ JNLE
)
Default: JG
, CMOVG
, SETG
Arguments
value
: New value
Trait Implementations
impl Clone for FormatterOptions
[src]
pub fn clone(&self) -> FormatterOptions
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for FormatterOptions
[src]
impl Default for FormatterOptions
[src]
impl Eq for FormatterOptions
[src]
impl Hash for FormatterOptions
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<FormatterOptions> for FormatterOptions
[src]
pub fn eq(&self, other: &FormatterOptions) -> bool
[src]
pub fn ne(&self, other: &FormatterOptions) -> bool
[src]
impl StructuralEq for FormatterOptions
[src]
impl StructuralPartialEq for FormatterOptions
[src]
Auto Trait Implementations
impl RefUnwindSafe for FormatterOptions
impl Send for FormatterOptions
impl Sync for FormatterOptions
impl Unpin for FormatterOptions
impl UnwindSafe for FormatterOptions
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,