Skip to main content

FastFormatterOptions

Struct FastFormatterOptions 

Source
pub struct FastFormatterOptions { /* private fields */ }
Expand description

Fast formatter options

Implementations§

Source§

impl FastFormatterOptions

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 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 use_pseudo_ops(&self) -> bool

Use pseudo instructions

DefaultValueExample
👍truevcmpnltsd xmm2,xmm6,xmm3
_falsevcmpsd xmm2,xmm6,xmm3,5h
Source

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

Use pseudo instructions

DefaultValueExample
👍truevcmpnltsd xmm2,xmm6,xmm3
_falsevcmpsd xmm2,xmm6,xmm3,5h
§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 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 always_show_memory_size(&self) -> bool

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
Source

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

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
  • 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 use_hex_prefix(&self) -> bool

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

DefaultValueExample
_true0x5A
👍false5Ah
Source

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

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

DefaultValueExample
_true0x5A
👍false5Ah
§Arguments
  • value: New value

Trait Implementations§

Source§

impl Clone for FastFormatterOptions

Source§

fn clone(&self) -> FastFormatterOptions

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for FastFormatterOptions

Source§

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

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

impl Eq for FastFormatterOptions

Source§

impl Hash for FastFormatterOptions

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 FastFormatterOptions

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for FastFormatterOptions

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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,

Source§

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>,

Source§

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>,

Source§

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.