[−][src]Struct iced_x86::NumberFormattingOptions
Gets initialized with the default options and can be overridden by a FormatterOptionsProvider
Fields
prefix: &'a str
Number prefix or an empty string
suffix: &'a str
Number suffix or an empty string
digit_separator: &'a str
Digit separator or an empty string to not use a digit separator
digit_group_size: u8
Size of a digit group or 0 to not use a digit separator
number_base: NumberBase
Number base
uppercase_hex: bool
Use upper case hex digits
small_hex_numbers_in_decimal: bool
Small hex numbers (-9 .. 9) are shown in decimal
add_leading_zero_to_hex_numbers: bool
Add a leading zero to hex numbers if there's no prefix and the number starts with hex digits A-F
leading_zeroes: bool
If true
, add leading zeroes to numbers, eg. 1h
vs 00000001h
signed_number: bool
If true
, the number is signed, and if false
it's an unsigned number
displacement_leading_zeroes: bool
Add leading zeroes to displacements
Methods
impl<'a> NumberFormattingOptions<'a>
[src]
#[must_use]
pub fn with_immediate(options: &'a FormatterOptions) -> Self
[src]
#[must_use]
pub fn with_displacement(options: &'a FormatterOptions) -> Self
[src]
#[must_use]
pub fn with_branch(options: &'a FormatterOptions) -> Self
[src]
#[must_use]
pub fn new(
options: &'a FormatterOptions,
leading_zeroes: bool,
signed_number: bool,
displacement_leading_zeroes: bool
) -> Self
[src]
options: &'a FormatterOptions,
leading_zeroes: bool,
signed_number: bool,
displacement_leading_zeroes: bool
) -> Self
Constructor
Arguments
options
: Formatter options to useleading_zeroes
: Add leading zeroes to numbers, eg.1h
vs00000001h
signed_number
: Signed numbers iftrue
, and unsigned numbers iffalse
displacement_leading_zeroes
: Add leading zeroes to displacements
Trait Implementations
impl<'a> Clone for NumberFormattingOptions<'a>
[src]
fn clone(&self) -> NumberFormattingOptions<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Copy for NumberFormattingOptions<'a>
[src]
impl<'a> Debug for NumberFormattingOptions<'a>
[src]
impl<'a> Default for NumberFormattingOptions<'a>
[src]
fn default() -> NumberFormattingOptions<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for NumberFormattingOptions<'a>
impl<'a> Send for NumberFormattingOptions<'a>
impl<'a> Sync for NumberFormattingOptions<'a>
impl<'a> Unpin for NumberFormattingOptions<'a>
impl<'a> UnwindSafe for NumberFormattingOptions<'a>
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,
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.
fn to_owned(&self) -> T
[src]
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.
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>,