pub struct FormatterOptions { /* private fields */ }
Expand description

Formatter options

Implementations§

source§

impl FormatterOptions

source

pub fn new() -> Self

Creates default formatter options

source

pub fn with_gas() -> Self

Creates default gas (AT&T) formatter options

source

pub fn with_intel() -> Self

Creates default Intel (XED) formatter options

source

pub fn with_masm() -> Self

Creates default masm formatter options

source

pub fn with_nasm() -> Self

Creates default nasm formatter options

source

pub const fn uppercase_prefixes(&self) -> bool

Prefixes are uppercased

DefaultValueExample
_trueREP stosd
👍falserep stosd
source

pub fn set_uppercase_prefixes(&mut self, value: bool)

Prefixes are uppercased

DefaultValueExample
_trueREP stosd
👍falserep stosd
Arguments
  • value: New value
source

pub const fn uppercase_mnemonics(&self) -> bool

Mnemonics are uppercased

DefaultValueExample
_trueMOV rcx,rax
👍falsemov rcx,rax
source

pub fn set_uppercase_mnemonics(&mut self, value: bool)

Mnemonics are uppercased

DefaultValueExample
_trueMOV rcx,rax
👍falsemov rcx,rax
Arguments
  • value: New value
source

pub const fn uppercase_registers(&self) -> bool

Registers are uppercased

DefaultValueExample
_truemov RCX,[RAX+RDX*8]
👍falsemov rcx,[rax+rdx*8]
source

pub fn set_uppercase_registers(&mut self, value: bool)

Registers are uppercased

DefaultValueExample
_truemov RCX,[RAX+RDX*8]
👍falsemov rcx,[rax+rdx*8]
Arguments
  • value: New value
source

pub const fn uppercase_keywords(&self) -> bool

Keywords are uppercased (eg. BYTE PTR, SHORT)

DefaultValueExample
_truemov BYTE PTR [rcx],12h
👍falsemov byte ptr [rcx],12h
source

pub fn set_uppercase_keywords(&mut self, value: bool)

Keywords are uppercased (eg. BYTE PTR, SHORT)

DefaultValueExample
_truemov BYTE PTR [rcx],12h
👍falsemov byte ptr [rcx],12h
Arguments
  • value: New value
source

pub const fn uppercase_decorators(&self) -> bool

Uppercase decorators, eg. {z}, {sae}, {rd-sae} (but not opmask registers: {k1})

DefaultValueExample
_truevunpcklps xmm2{k5}{Z},xmm6,dword bcst [rax+4]
👍falsevunpcklps xmm2{k5}{z},xmm6,dword bcst [rax+4]
source

pub fn set_uppercase_decorators(&mut self, value: bool)

Uppercase decorators, eg. {z}, {sae}, {rd-sae} (but not opmask registers: {k1})

DefaultValueExample
_truevunpcklps xmm2{k5}{Z},xmm6,dword bcst [rax+4]
👍falsevunpcklps xmm2{k5}{z},xmm6,dword bcst [rax+4]
Arguments
  • value: New value
source

pub const fn uppercase_all(&self) -> bool

Everything is uppercased, except numbers and their prefixes/suffixes

DefaultValueExample
_trueMOV EAX,GS:[RCX*4+0ffh]
👍falsemov eax,gs:[rcx*4+0ffh]
source

pub fn set_uppercase_all(&mut self, value: bool)

Everything is uppercased, except numbers and their prefixes/suffixes

DefaultValueExample
_trueMOV EAX,GS:[RCX*4+0ffh]
👍falsemov eax,gs:[rcx*4+0ffh]
Arguments
  • value: New value
source

pub const fn first_operand_char_index(&self) -> u32

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.

DefaultValueExample
👍0mov•rcx,rbp
_8mov•••••rcx,rbp
source

pub fn set_first_operand_char_index(&mut self, value: u32)

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.

DefaultValueExample
👍0mov•rcx,rbp
_8mov•••••rcx,rbp
Arguments
  • value: New value
source

pub const fn tab_size(&self) -> u32

Size of a tab character or 0 to use spaces

  • Default: 0
source

pub fn set_tab_size(&mut self, value: u32)

Size of a tab character or 0 to use spaces

  • Default: 0
Arguments
  • value: New value
source

pub const fn space_after_operand_separator(&self) -> bool

Add a space after the operand separator

DefaultValueExample
_truemov rax, rcx
👍falsemov rax,rcx
source

pub fn set_space_after_operand_separator(&mut self, value: bool)

Add a space after the operand separator

DefaultValueExample
_truemov rax, rcx
👍falsemov rax,rcx
Arguments
  • value: New value
source

pub const fn space_after_memory_bracket(&self) -> bool

Add a space between the memory expression and the brackets

DefaultValueExample
_truemov eax,[ rcx+rdx ]
👍falsemov eax,[rcx+rdx]
source

pub fn set_space_after_memory_bracket(&mut self, value: bool)

Add a space between the memory expression and the brackets

DefaultValueExample
_truemov eax,[ rcx+rdx ]
👍falsemov eax,[rcx+rdx]
Arguments
  • value: New value
source

pub const fn space_between_memory_add_operators(&self) -> bool

Add spaces between memory operand + and - operators

DefaultValueExample
_truemov eax,[rcx + rdx*8 - 80h]
👍falsemov eax,[rcx+rdx*8-80h]
source

pub fn set_space_between_memory_add_operators(&mut self, value: bool)

Add spaces between memory operand + and - operators

DefaultValueExample
_truemov eax,[rcx + rdx*8 - 80h]
👍falsemov eax,[rcx+rdx*8-80h]
Arguments
  • value: New value
source

pub const fn space_between_memory_mul_operators(&self) -> bool

Add spaces between memory operand * operator

DefaultValueExample
_truemov eax,[rcx+rdx * 8-80h]
👍falsemov eax,[rcx+rdx*8-80h]
source

pub fn set_space_between_memory_mul_operators(&mut self, value: bool)

Add spaces between memory operand * operator

DefaultValueExample
_truemov eax,[rcx+rdx * 8-80h]
👍falsemov eax,[rcx+rdx*8-80h]
Arguments
  • value: New value
source

pub const fn scale_before_index(&self) -> bool

Show memory operand scale value before the index register

DefaultValueExample
_truemov eax,[8*rdx]
👍falsemov eax,[rdx*8]
source

pub fn set_scale_before_index(&mut self, value: bool)

Show memory operand scale value before the index register

DefaultValueExample
_truemov eax,[8*rdx]
👍falsemov eax,[rdx*8]
Arguments
  • value: New value
source

pub const fn always_show_scale(&self) -> bool

Always show the scale value even if it’s *1

DefaultValueExample
_truemov eax,[rbx+rcx*1]
👍falsemov eax,[rbx+rcx]
source

pub fn set_always_show_scale(&mut self, value: bool)

Always show the scale value even if it’s *1

DefaultValueExample
_truemov eax,[rbx+rcx*1]
👍falsemov eax,[rbx+rcx]
Arguments
  • value: New value
source

pub const fn always_show_segment_register(&self) -> bool

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]
source

pub fn set_always_show_segment_register(&mut self, value: bool)

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
  • value: New value
source

pub const fn show_zero_displacements(&self) -> bool

Show zero displacements

DefaultValueExample
_truemov eax,[rcx*2+0]
👍falsemov eax,[rcx*2]
source

pub fn set_show_zero_displacements(&mut self, value: bool)

Show zero displacements

DefaultValueExample
_truemov eax,[rcx*2+0]
👍falsemov eax,[rcx*2]
Arguments
  • value: New value
source

pub fn hex_prefix(&self) -> &str

Hex number prefix or an empty string, eg. "0x"

  • Default: "" (masm/nasm/intel), "0x" (gas)
source

pub fn set_hex_prefix(&mut self, value: &'static str)

Hex number prefix or an empty string, eg. "0x"

  • Default: "" (masm/nasm/intel), "0x" (gas)
Arguments
  • value: New value
source

pub fn set_hex_prefix_string(&mut self, value: String)

Hex number prefix or an empty string, eg. "0x"

  • Default: "" (masm/nasm/intel), "0x" (gas)
Arguments
  • value: New value
source

pub fn hex_suffix(&self) -> &str

Hex number suffix or an empty string, eg. "h"

  • Default: "h" (masm/nasm/intel), "" (gas)
source

pub fn set_hex_suffix(&mut self, value: &'static str)

Hex number suffix or an empty string, eg. "h"

  • Default: "h" (masm/nasm/intel), "" (gas)
Arguments
  • value: New value
source

pub fn set_hex_suffix_string(&mut self, value: String)

Hex number suffix or an empty string, eg. "h"

  • Default: "h" (masm/nasm/intel), "" (gas)
Arguments
  • value: New value
source

pub const fn hex_digit_group_size(&self) -> u32

Size of a digit group, see also digit_separator()

DefaultValueExample
_00x12345678
👍40x1234_5678
source

pub fn set_hex_digit_group_size(&mut self, value: u32)

Size of a digit group, see also digit_separator()

DefaultValueExample
_00x12345678
👍40x1234_5678
Arguments
  • value: New value
source

pub fn decimal_prefix(&self) -> &str

Decimal number prefix or an empty string

  • Default: ""
source

pub fn set_decimal_prefix(&mut self, value: &'static str)

Decimal number prefix or an empty string

  • Default: ""
Arguments
  • value: New value
source

pub fn set_decimal_prefix_string(&mut self, value: String)

Decimal number prefix or an empty string

  • Default: ""
Arguments
  • value: New value
source

pub fn decimal_suffix(&self) -> &str

Decimal number suffix or an empty string

  • Default: ""
source

pub fn set_decimal_suffix(&mut self, value: &'static str)

Decimal number suffix or an empty string

  • Default: ""
Arguments
  • value: New value
source

pub fn set_decimal_suffix_string(&mut self, value: String)

Decimal number suffix or an empty string

  • Default: ""
Arguments
  • value: New value
source

pub const fn decimal_digit_group_size(&self) -> u32

Size of a digit group, see also digit_separator()

DefaultValueExample
_012345678
👍312_345_678
source

pub fn set_decimal_digit_group_size(&mut self, value: u32)

Size of a digit group, see also digit_separator()

DefaultValueExample
_012345678
👍312_345_678
Arguments
  • value: New value
source

pub fn octal_prefix(&self) -> &str

Octal number prefix or an empty string

  • Default: "" (masm/nasm/intel), "0" (gas)
source

pub fn set_octal_prefix(&mut self, value: &'static str)

Octal number prefix or an empty string

  • Default: "" (masm/nasm/intel), "0" (gas)
Arguments
  • value: New value
source

pub fn set_octal_prefix_string(&mut self, value: String)

Octal number prefix or an empty string

  • Default: "" (masm/nasm/intel), "0" (gas)
Arguments
  • value: New value
source

pub fn octal_suffix(&self) -> &str

Octal number suffix or an empty string

  • Default: "o" (masm/nasm/intel), "" (gas)
source

pub fn set_octal_suffix(&mut self, value: &'static str)

Octal number suffix or an empty string

  • Default: "o" (masm/nasm/intel), "" (gas)
Arguments
  • value: New value
source

pub fn set_octal_suffix_string(&mut self, value: String)

Octal number suffix or an empty string

  • Default: "o" (masm/nasm/intel), "" (gas)
Arguments
  • value: New value
source

pub const fn octal_digit_group_size(&self) -> u32

Size of a digit group, see also digit_separator()

DefaultValueExample
_012345670
👍41234_5670
source

pub fn set_octal_digit_group_size(&mut self, value: u32)

Size of a digit group, see also digit_separator()

DefaultValueExample
_012345670
👍41234_5670
Arguments
  • value: New value
source

pub fn binary_prefix(&self) -> &str

Binary number prefix or an empty string

  • Default: "" (masm/nasm/intel), "0b" (gas)
source

pub fn set_binary_prefix(&mut self, value: &'static str)

Binary number prefix or an empty string

  • Default: "" (masm/nasm/intel), "0b" (gas)
Arguments
  • value: New value
source

pub fn set_binary_prefix_string(&mut self, value: String)

Binary number prefix or an empty string

  • Default: "" (masm/nasm/intel), "0b" (gas)
Arguments
  • value: New value
source

pub fn binary_suffix(&self) -> &str

Binary number suffix or an empty string

  • Default: "b" (masm/nasm/intel), "" (gas)
source

pub fn set_binary_suffix(&mut self, value: &'static str)

Binary number suffix or an empty string

  • Default: "b" (masm/nasm/intel), "" (gas)
Arguments
  • value: New value
source

pub fn set_binary_suffix_string(&mut self, value: String)

Binary number suffix or an empty string

  • Default: "b" (masm/nasm/intel), "" (gas)
Arguments
  • value: New value
source

pub const fn binary_digit_group_size(&self) -> u32

Size of a digit group, see also digit_separator()

DefaultValueExample
_011010111
👍41101_0111
source

pub fn set_binary_digit_group_size(&mut self, value: u32)

Size of a digit group, see also digit_separator()

DefaultValueExample
_011010111
👍41101_0111
Arguments
  • value: New value
source

pub fn digit_separator(&self) -> &str

Digit separator or an empty string. See also eg. hex_digit_group_size()

DefaultValueExample
👍""0x12345678
_"_"0x1234_5678
source

pub fn set_digit_separator(&mut self, value: &'static str)

Digit separator or an empty string. See also eg. hex_digit_group_size()

DefaultValueExample
👍""0x12345678
_"_"0x1234_5678
Arguments
  • value: New value
source

pub fn set_digit_separator_string(&mut self, value: String)

Digit separator or an empty string. See also eg. hex_digit_group_size()

DefaultValueExample
👍""0x12345678
_"_"0x1234_5678
Arguments
  • value: New value
source

pub const fn leading_zeros(&self) -> bool

Add leading zeros to hexadecimal/octal/binary numbers. This option has no effect on branch targets and displacements, use branch_leading_zeros and displacement_leading_zeros.

DefaultValueExample
_true0x0000000A/0000000Ah
👍false0xA/0Ah
source

pub fn set_leading_zeros(&mut self, value: bool)

Add leading zeros to hexadecimal/octal/binary numbers. This option has no effect on branch targets and displacements, use branch_leading_zeros and displacement_leading_zeros.

DefaultValueExample
_true0x0000000A/0000000Ah
👍false0xA/0Ah
Arguments
  • value: New value
source

pub const fn uppercase_hex(&self) -> bool

Use uppercase hex digits

DefaultValueExample
👍true0xFF
_false0xff
source

pub fn set_uppercase_hex(&mut self, value: bool)

Use uppercase hex digits

DefaultValueExample
👍true0xFF
_false0xff
Arguments
  • value: New value
source

pub const fn small_hex_numbers_in_decimal(&self) -> bool

Small hex numbers (-9 .. 9) are shown in decimal

DefaultValueExample
👍true9
_false0x9
source

pub fn set_small_hex_numbers_in_decimal(&mut self, value: bool)

Small hex numbers (-9 .. 9) are shown in decimal

DefaultValueExample
👍true9
_false0x9
Arguments
  • value: New value
source

pub const fn add_leading_zero_to_hex_numbers(&self) -> bool

Add a leading zero to hex numbers if there’s no prefix and the number starts with hex digits A-F

DefaultValueExample
👍true0FFh
_falseFFh
source

pub fn set_add_leading_zero_to_hex_numbers(&mut self, value: bool)

Add a leading zero to hex numbers if there’s no prefix and the number starts with hex digits A-F

DefaultValueExample
👍true0FFh
_falseFFh
Arguments
  • value: New value
source

pub const fn number_base(&self) -> NumberBase

Number base

source

pub fn set_number_base(&mut self, value: NumberBase)

Number base

Arguments
  • value: New value
source

pub const fn branch_leading_zeros(&self) -> bool

Add leading zeros to branch offsets. Used by CALL NEAR, CALL FAR, JMP NEAR, JMP FAR, Jcc, LOOP, LOOPcc, XBEGIN

DefaultValueExample
👍trueje 00000123h
_falseje 123h
source

pub fn set_branch_leading_zeros(&mut self, value: bool)

Add leading zeros to branch offsets. Used by CALL NEAR, CALL FAR, JMP NEAR, JMP FAR, Jcc, LOOP, LOOPcc, XBEGIN

DefaultValueExample
👍trueje 00000123h
_falseje 123h
Arguments
  • value: New value
source

pub const fn signed_immediate_operands(&self) -> bool

Show immediate operands as signed numbers

DefaultValueExample
_truemov eax,-1
👍falsemov eax,FFFFFFFF
source

pub fn set_signed_immediate_operands(&mut self, value: bool)

Show immediate operands as signed numbers

DefaultValueExample
_truemov eax,-1
👍falsemov eax,FFFFFFFF
Arguments
  • value: New value
source

pub const fn signed_memory_displacements(&self) -> bool

Displacements are signed numbers

DefaultValueExample
👍truemov al,[eax-2000h]
_falsemov al,[eax+0FFFFE000h]
source

pub fn set_signed_memory_displacements(&mut self, value: bool)

Displacements are signed numbers

DefaultValueExample
👍truemov al,[eax-2000h]
_falsemov al,[eax+0FFFFE000h]
Arguments
  • value: New value
source

pub const fn displacement_leading_zeros(&self) -> bool

Add leading zeros to displacements

DefaultValueExample
_truemov al,[eax+00000012h]
👍falsemov al,[eax+12h]
source

pub fn set_displacement_leading_zeros(&mut self, value: bool)

Add leading zeros to displacements

DefaultValueExample
_truemov al,[eax+00000012h]
👍falsemov al,[eax+12h]
Arguments
  • value: New value
source

pub const fn memory_size_options(&self) -> MemorySizeOptions

Options that control if the memory size (eg. DWORD PTR) is shown or not. This is ignored by the gas (AT&T) formatter.

source

pub fn set_memory_size_options(&mut self, value: MemorySizeOptions)

Options that control if the memory size (eg. DWORD PTR) is shown or not. This is ignored by the gas (AT&T) formatter.

Arguments
  • value: New value
source

pub const fn rip_relative_addresses(&self) -> bool

Show RIP+displ or the virtual address

DefaultValueExample
_truemov eax,[rip+12345678h]
👍falsemov eax,[1029384756AFBECDh]
source

pub fn set_rip_relative_addresses(&mut self, value: bool)

Show RIP+displ or the virtual address

DefaultValueExample
_truemov eax,[rip+12345678h]
👍falsemov eax,[1029384756AFBECDh]
Arguments
  • value: New value
source

pub const fn show_branch_size(&self) -> bool

Show NEAR, SHORT, etc if it’s a branch instruction

DefaultValueExample
👍trueje short 1234h
_falseje 1234h
source

pub fn set_show_branch_size(&mut self, value: bool)

Show NEAR, SHORT, etc if it’s a branch instruction

DefaultValueExample
👍trueje short 1234h
_falseje 1234h
Arguments
  • value: New value
source

pub const fn use_pseudo_ops(&self) -> bool

Use pseudo instructions

DefaultValueExample
👍truevcmpnltsd xmm2,xmm6,xmm3
_falsevcmpsd xmm2,xmm6,xmm3,5
source

pub fn set_use_pseudo_ops(&mut self, value: bool)

Use pseudo instructions

DefaultValueExample
👍truevcmpnltsd xmm2,xmm6,xmm3
_falsevcmpsd xmm2,xmm6,xmm3,5
Arguments
  • value: New value
source

pub const fn show_symbol_address(&self) -> bool

Show the original value after the symbol name

DefaultValueExample
_truemov eax,[myfield (12345678)]
👍falsemov eax,[myfield]
source

pub fn set_show_symbol_address(&mut self, value: bool)

Show the original value after the symbol name

DefaultValueExample
_truemov eax,[myfield (12345678)]
👍falsemov eax,[myfield]
Arguments
  • value: New value
source

pub const fn gas_naked_registers(&self) -> bool

(gas only): If true, the formatter doesn’t add % to registers

DefaultValueExample
_truemov eax,ecx
👍falsemov %eax,%ecx
source

pub fn set_gas_naked_registers(&mut self, value: bool)

(gas only): If true, the formatter doesn’t add % to registers

DefaultValueExample
_truemov eax,ecx
👍falsemov %eax,%ecx
Arguments
  • value: New value
source

pub const fn gas_show_mnemonic_size_suffix(&self) -> bool

(gas only): Shows the mnemonic size suffix even when not needed

DefaultValueExample
_truemovl %eax,%ecx
👍falsemov %eax,%ecx
source

pub fn set_gas_show_mnemonic_size_suffix(&mut self, value: bool)

(gas only): Shows the mnemonic size suffix even when not needed

DefaultValueExample
_truemovl %eax,%ecx
👍falsemov %eax,%ecx
Arguments
  • value: New value
source

pub const fn gas_space_after_memory_operand_comma(&self) -> bool

(gas only): Add a space after the comma if it’s a memory operand

DefaultValueExample
_true(%eax, %ecx, 2)
👍false(%eax,%ecx,2)
source

pub fn set_gas_space_after_memory_operand_comma(&mut self, value: bool)

(gas only): Add a space after the comma if it’s a memory operand

DefaultValueExample
_true(%eax, %ecx, 2)
👍false(%eax,%ecx,2)
Arguments
  • value: New value
source

pub const fn masm_add_ds_prefix32(&self) -> bool

(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

DefaultValueExample
👍truemov eax,ds:[12345678]
_falsemov eax,[12345678]
source

pub fn set_masm_add_ds_prefix32(&mut self, value: bool)

(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

DefaultValueExample
👍truemov eax,ds:[12345678]
_falsemov eax,[12345678]
Arguments
  • value: New value
source

pub const fn masm_symbol_displ_in_brackets(&self) -> bool

(masm only): Show symbols in brackets

DefaultValueExample
👍true[ecx+symbol] / [symbol]
_falsesymbol[ecx] / symbol
source

pub fn set_masm_symbol_displ_in_brackets(&mut self, value: bool)

(masm only): Show symbols in brackets

DefaultValueExample
👍true[ecx+symbol] / [symbol]
_falsesymbol[ecx] / symbol
Arguments
  • value: New value
source

pub const fn masm_displ_in_brackets(&self) -> bool

(masm only): Show displacements in brackets

DefaultValueExample
👍true[ecx+1234h]
_false1234h[ecx]
source

pub fn set_masm_displ_in_brackets(&mut self, value: bool)

(masm only): Show displacements in brackets

DefaultValueExample
👍true[ecx+1234h]
_false1234h[ecx]
Arguments
  • value: New value
source

pub const fn nasm_show_sign_extended_immediate_size(&self) -> bool

(nasm only): Shows BYTE, WORD, DWORD or QWORD if it’s a sign extended immediate operand value

DefaultValueExample
_trueor rcx,byte -1
👍falseor rcx,-1
source

pub fn set_nasm_show_sign_extended_immediate_size(&mut self, value: bool)

(nasm only): Shows BYTE, WORD, DWORD or QWORD if it’s a sign extended immediate operand value

DefaultValueExample
_trueor rcx,byte -1
👍falseor rcx,-1
Arguments
  • value: New value
source

pub const fn prefer_st0(&self) -> bool

Use st(0) instead of st if st can be used. Ignored by the nasm formatter.

DefaultValueExample
_truefadd st(0),st(3)
👍falsefadd st,st(3)
source

pub fn set_prefer_st0(&mut self, value: bool)

Use st(0) instead of st if st can be used. Ignored by the nasm formatter.

DefaultValueExample
_truefadd st(0),st(3)
👍falsefadd st,st(3)
Arguments
  • value: New value
source

pub const fn show_useless_prefixes(&self) -> bool

Show useless prefixes. If it has useless prefixes, it could be data and not code.

DefaultValueExample
_truees rep add eax,ecx
👍falseadd eax,ecx
source

pub fn set_show_useless_prefixes(&mut self, value: bool)

Show useless prefixes. If it has useless prefixes, it could be data and not code.

DefaultValueExample
_truees rep add eax,ecx
👍falseadd eax,ecx
Arguments
  • value: New value
source

pub const fn cc_b(&self) -> CC_b

Mnemonic condition code selector (eg. JB / JC / JNAE)

Default: JB, CMOVB, SETB

source

pub fn set_cc_b(&mut self, value: CC_b)

Mnemonic condition code selector (eg. JB / JC / JNAE)

Default: JB, CMOVB, SETB

Arguments
  • value: New value
source

pub const fn cc_ae(&self) -> CC_ae

Mnemonic condition code selector (eg. JAE / JNB / JNC)

Default: JAE, CMOVAE, SETAE

source

pub fn set_cc_ae(&mut self, value: CC_ae)

Mnemonic condition code selector (eg. JAE / JNB / JNC)

Default: JAE, CMOVAE, SETAE

Arguments
  • value: New value
source

pub const fn cc_e(&self) -> CC_e

Mnemonic condition code selector (eg. JE / JZ)

Default: JE, CMOVE, SETE, LOOPE, REPE

source

pub fn set_cc_e(&mut self, value: CC_e)

Mnemonic condition code selector (eg. JE / JZ)

Default: JE, CMOVE, SETE, LOOPE, REPE

Arguments
  • value: New value
source

pub const fn cc_ne(&self) -> CC_ne

Mnemonic condition code selector (eg. JNE / JNZ)

Default: JNE, CMOVNE, SETNE, LOOPNE, REPNE

source

pub fn set_cc_ne(&mut self, value: CC_ne)

Mnemonic condition code selector (eg. JNE / JNZ)

Default: JNE, CMOVNE, SETNE, LOOPNE, REPNE

Arguments
  • value: New value
source

pub const fn cc_be(&self) -> CC_be

Mnemonic condition code selector (eg. JBE / JNA)

Default: JBE, CMOVBE, SETBE

source

pub fn set_cc_be(&mut self, value: CC_be)

Mnemonic condition code selector (eg. JBE / JNA)

Default: JBE, CMOVBE, SETBE

Arguments
  • value: New value
source

pub const fn cc_a(&self) -> CC_a

Mnemonic condition code selector (eg. JA / JNBE)

Default: JA, CMOVA, SETA

source

pub fn set_cc_a(&mut self, value: CC_a)

Mnemonic condition code selector (eg. JA / JNBE)

Default: JA, CMOVA, SETA

Arguments
  • value: New value
source

pub const fn cc_p(&self) -> CC_p

Mnemonic condition code selector (eg. JP / JPE)

Default: JP, CMOVP, SETP

source

pub fn set_cc_p(&mut self, value: CC_p)

Mnemonic condition code selector (eg. JP / JPE)

Default: JP, CMOVP, SETP

Arguments
  • value: New value
source

pub const fn cc_np(&self) -> CC_np

Mnemonic condition code selector (eg. JNP / JPO)

Default: JNP, CMOVNP, SETNP

source

pub fn set_cc_np(&mut self, value: CC_np)

Mnemonic condition code selector (eg. JNP / JPO)

Default: JNP, CMOVNP, SETNP

Arguments
  • value: New value
source

pub const fn cc_l(&self) -> CC_l

Mnemonic condition code selector (eg. JL / JNGE)

Default: JL, CMOVL, SETL

source

pub fn set_cc_l(&mut self, value: CC_l)

Mnemonic condition code selector (eg. JL / JNGE)

Default: JL, CMOVL, SETL

Arguments
  • value: New value
source

pub const fn cc_ge(&self) -> CC_ge

Mnemonic condition code selector (eg. JGE / JNL)

Default: JGE, CMOVGE, SETGE

source

pub fn set_cc_ge(&mut self, value: CC_ge)

Mnemonic condition code selector (eg. JGE / JNL)

Default: JGE, CMOVGE, SETGE

Arguments
  • value: New value
source

pub const fn cc_le(&self) -> CC_le

Mnemonic condition code selector (eg. JLE / JNG)

Default: JLE, CMOVLE, SETLE

source

pub fn set_cc_le(&mut self, value: CC_le)

Mnemonic condition code selector (eg. JLE / JNG)

Default: JLE, CMOVLE, SETLE

Arguments
  • value: New value
source

pub const fn cc_g(&self) -> CC_g

Mnemonic condition code selector (eg. JG / JNLE)

Default: JG, CMOVG, SETG

source

pub fn set_cc_g(&mut self, value: CC_g)

Mnemonic condition code selector (eg. JG / JNLE)

Default: JG, CMOVG, SETG

Arguments
  • value: New value

Trait Implementations§

source§

impl Clone for FormatterOptions

source§

fn clone(&self) -> FormatterOptions

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for FormatterOptions

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for FormatterOptions

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Hash for FormatterOptions

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for FormatterOptions

source§

fn eq(&self, other: &FormatterOptions) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Eq for FormatterOptions

source§

impl StructuralEq for FormatterOptions

source§

impl StructuralPartialEq for FormatterOptions

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.