NumberFormatInfo
struct · ferroui-base · v0.5.0
struct NumberFormatInfo
Culture-specific information for formatting and parsing numbers.
Used as Rc<NumberFormatInfo> where the managed runtime passes the
object around; like every reference type without value equality it
compares by identity.
Members
currency_decimal_separatorset_currency_decimal_separatorwith_currency_decimal_separatorcurrency_group_separatorset_currency_group_separatorwith_currency_group_separatorcurrency_symbolset_currency_symbolwith_currency_symbolnan_symbolset_nan_symbolwith_nan_symbolnegative_infinity_symbolset_negative_infinity_symbolwith_negative_infinity_symbolnegative_signset_negative_signwith_negative_signnumber_decimal_separatorset_number_decimal_separatorwith_number_decimal_separatornumber_group_separatorset_number_group_separatorwith_number_group_separatorpercent_decimal_separatorset_percent_decimal_separatorwith_percent_decimal_separatorpercent_group_separatorset_percent_group_separatorwith_percent_group_separatorpercent_symbolset_percent_symbolwith_percent_symbolper_mille_symbolset_per_mille_symbolwith_per_mille_symbolpositive_infinity_symbolset_positive_infinity_symbolwith_positive_infinity_symbolpositive_signset_positive_signwith_positive_signcurrency_decimal_digitsset_currency_decimal_digitswith_currency_decimal_digitscurrency_negative_patternset_currency_negative_patternwith_currency_negative_patterncurrency_positive_patternset_currency_positive_patternwith_currency_positive_patternnumber_decimal_digitsset_number_decimal_digitswith_number_decimal_digitsnumber_negative_patternset_number_negative_patternwith_number_negative_patternpercent_decimal_digitsset_percent_decimal_digitswith_percent_decimal_digitspercent_negative_patternset_percent_negative_patternwith_percent_negative_patternpercent_positive_patternset_percent_positive_patternwith_percent_positive_patterncurrency_group_sizesset_currency_group_sizeswith_currency_group_sizesnumber_group_sizesset_number_group_sizeswith_number_group_sizespercent_group_sizesset_percent_group_sizeswith_percent_group_sizesnewinvariant_infocurrent_infoget_instance
currency_decimal_separator
fn currency_decimal_separator(self: &Self) -> &str
The decimal separator of currency values.
set_currency_decimal_separator
fn set_currency_decimal_separator(self: &mut Self, value: impl Into<String>)
The decimal separator of currency values.
with_currency_decimal_separator
fn with_currency_decimal_separator(self: Self, value: impl Into<String>) -> Self
The decimal separator of currency values.
currency_group_separator
fn currency_group_separator(self: &Self) -> &str
The separator of the digit groups of currency values.
set_currency_group_separator
fn set_currency_group_separator(self: &mut Self, value: impl Into<String>)
The separator of the digit groups of currency values.
with_currency_group_separator
fn with_currency_group_separator(self: Self, value: impl Into<String>) -> Self
The separator of the digit groups of currency values.
currency_symbol
fn currency_symbol(self: &Self) -> &str
The currency symbol.
set_currency_symbol
fn set_currency_symbol(self: &mut Self, value: impl Into<String>)
The currency symbol.
with_currency_symbol
fn with_currency_symbol(self: Self, value: impl Into<String>) -> Self
The currency symbol.
nan_symbol
fn nan_symbol(self: &Self) -> &str
The text of not-a-number.
set_nan_symbol
fn set_nan_symbol(self: &mut Self, value: impl Into<String>)
The text of not-a-number.
with_nan_symbol
fn with_nan_symbol(self: Self, value: impl Into<String>) -> Self
The text of not-a-number.
negative_infinity_symbol
fn negative_infinity_symbol(self: &Self) -> &str
The text of negative infinity.
set_negative_infinity_symbol
fn set_negative_infinity_symbol(self: &mut Self, value: impl Into<String>)
The text of negative infinity.
with_negative_infinity_symbol
fn with_negative_infinity_symbol(self: Self, value: impl Into<String>) -> Self
The text of negative infinity.
negative_sign
fn negative_sign(self: &Self) -> &str
The sign of negative numbers.
set_negative_sign
fn set_negative_sign(self: &mut Self, value: impl Into<String>)
The sign of negative numbers.
with_negative_sign
fn with_negative_sign(self: Self, value: impl Into<String>) -> Self
The sign of negative numbers.
number_decimal_separator
fn number_decimal_separator(self: &Self) -> &str
The decimal separator of numbers.
set_number_decimal_separator
fn set_number_decimal_separator(self: &mut Self, value: impl Into<String>)
The decimal separator of numbers.
with_number_decimal_separator
fn with_number_decimal_separator(self: Self, value: impl Into<String>) -> Self
The decimal separator of numbers.
number_group_separator
fn number_group_separator(self: &Self) -> &str
The separator of the digit groups of numbers.
set_number_group_separator
fn set_number_group_separator(self: &mut Self, value: impl Into<String>)
The separator of the digit groups of numbers.
with_number_group_separator
fn with_number_group_separator(self: Self, value: impl Into<String>) -> Self
The separator of the digit groups of numbers.
percent_decimal_separator
fn percent_decimal_separator(self: &Self) -> &str
The decimal separator of percent values.
set_percent_decimal_separator
fn set_percent_decimal_separator(self: &mut Self, value: impl Into<String>)
The decimal separator of percent values.
with_percent_decimal_separator
fn with_percent_decimal_separator(self: Self, value: impl Into<String>) -> Self
The decimal separator of percent values.
percent_group_separator
fn percent_group_separator(self: &Self) -> &str
The separator of the digit groups of percent values.
set_percent_group_separator
fn set_percent_group_separator(self: &mut Self, value: impl Into<String>)
The separator of the digit groups of percent values.
with_percent_group_separator
fn with_percent_group_separator(self: Self, value: impl Into<String>) -> Self
The separator of the digit groups of percent values.
percent_symbol
fn percent_symbol(self: &Self) -> &str
The percent symbol.
set_percent_symbol
fn set_percent_symbol(self: &mut Self, value: impl Into<String>)
The percent symbol.
with_percent_symbol
fn with_percent_symbol(self: Self, value: impl Into<String>) -> Self
The percent symbol.
per_mille_symbol
fn per_mille_symbol(self: &Self) -> &str
The per mille symbol.
set_per_mille_symbol
fn set_per_mille_symbol(self: &mut Self, value: impl Into<String>)
The per mille symbol.
with_per_mille_symbol
fn with_per_mille_symbol(self: Self, value: impl Into<String>) -> Self
The per mille symbol.
positive_infinity_symbol
fn positive_infinity_symbol(self: &Self) -> &str
The text of positive infinity.
set_positive_infinity_symbol
fn set_positive_infinity_symbol(self: &mut Self, value: impl Into<String>)
The text of positive infinity.
with_positive_infinity_symbol
fn with_positive_infinity_symbol(self: Self, value: impl Into<String>) -> Self
The text of positive infinity.
positive_sign
fn positive_sign(self: &Self) -> &str
The sign of positive numbers.
set_positive_sign
fn set_positive_sign(self: &mut Self, value: impl Into<String>)
The sign of positive numbers.
with_positive_sign
fn with_positive_sign(self: Self, value: impl Into<String>) -> Self
The sign of positive numbers.
currency_decimal_digits
fn currency_decimal_digits(self: &Self) -> i32
The number of decimal places of currency values.
set_currency_decimal_digits
fn set_currency_decimal_digits(self: &Self, value: i32)
The number of decimal places of currency values.
Panics when the value is out of range. Takes a shared
reference, as the instance is shared through Rc where the
original passes the object around (markup sets the property
on the instance it created).
with_currency_decimal_digits
fn with_currency_decimal_digits(self: Self, value: i32) -> Self
The number of decimal places of currency values.
Panics when the value is out of range.
currency_negative_pattern
fn currency_negative_pattern(self: &Self) -> i32
The pattern of negative currency values (0 is ($n), 1 is -$n).
set_currency_negative_pattern
fn set_currency_negative_pattern(self: &Self, value: i32)
The pattern of negative currency values (0 is ($n), 1 is -$n).
Panics when the value is out of range. Takes a shared
reference, as the instance is shared through Rc where the
original passes the object around (markup sets the property
on the instance it created).
with_currency_negative_pattern
fn with_currency_negative_pattern(self: Self, value: i32) -> Self
The pattern of negative currency values (0 is ($n), 1 is -$n).
Panics when the value is out of range.
currency_positive_pattern
fn currency_positive_pattern(self: &Self) -> i32
The pattern of positive currency values (0 is $n, 1 is n$, 2 is
$ n, 3 is n $).
set_currency_positive_pattern
fn set_currency_positive_pattern(self: &Self, value: i32)
The pattern of positive currency values (0 is $n, 1 is n$, 2 is
$ n, 3 is n $).
Panics when the value is out of range. Takes a shared
reference, as the instance is shared through Rc where the
original passes the object around (markup sets the property
on the instance it created).
with_currency_positive_pattern
fn with_currency_positive_pattern(self: Self, value: i32) -> Self
The pattern of positive currency values (0 is $n, 1 is n$, 2 is
$ n, 3 is n $).
Panics when the value is out of range.
number_decimal_digits
fn number_decimal_digits(self: &Self) -> i32
The number of decimal places of numbers.
set_number_decimal_digits
fn set_number_decimal_digits(self: &Self, value: i32)
The number of decimal places of numbers.
Panics when the value is out of range. Takes a shared
reference, as the instance is shared through Rc where the
original passes the object around (markup sets the property
on the instance it created).
with_number_decimal_digits
fn with_number_decimal_digits(self: Self, value: i32) -> Self
The number of decimal places of numbers.
Panics when the value is out of range.
number_negative_pattern
fn number_negative_pattern(self: &Self) -> i32
The pattern of negative numbers (0 is (n), 1 is -n, 2 is - n,
3 is n-, 4 is n -).
set_number_negative_pattern
fn set_number_negative_pattern(self: &Self, value: i32)
The pattern of negative numbers (0 is (n), 1 is -n, 2 is - n,
3 is n-, 4 is n -).
Panics when the value is out of range. Takes a shared
reference, as the instance is shared through Rc where the
original passes the object around (markup sets the property
on the instance it created).
with_number_negative_pattern
fn with_number_negative_pattern(self: Self, value: i32) -> Self
The pattern of negative numbers (0 is (n), 1 is -n, 2 is - n,
3 is n-, 4 is n -).
Panics when the value is out of range.
percent_decimal_digits
fn percent_decimal_digits(self: &Self) -> i32
The number of decimal places of percent values.
set_percent_decimal_digits
fn set_percent_decimal_digits(self: &Self, value: i32)
The number of decimal places of percent values.
Panics when the value is out of range. Takes a shared
reference, as the instance is shared through Rc where the
original passes the object around (markup sets the property
on the instance it created).
with_percent_decimal_digits
fn with_percent_decimal_digits(self: Self, value: i32) -> Self
The number of decimal places of percent values.
Panics when the value is out of range.
percent_negative_pattern
fn percent_negative_pattern(self: &Self) -> i32
The pattern of negative percent values (0 is -n %, 1 is -n%).
set_percent_negative_pattern
fn set_percent_negative_pattern(self: &Self, value: i32)
The pattern of negative percent values (0 is -n %, 1 is -n%).
Panics when the value is out of range. Takes a shared
reference, as the instance is shared through Rc where the
original passes the object around (markup sets the property
on the instance it created).
with_percent_negative_pattern
fn with_percent_negative_pattern(self: Self, value: i32) -> Self
The pattern of negative percent values (0 is -n %, 1 is -n%).
Panics when the value is out of range.
percent_positive_pattern
fn percent_positive_pattern(self: &Self) -> i32
The pattern of positive percent values (0 is n %, 1 is n%, 2 is
%n, 3 is % n).
set_percent_positive_pattern
fn set_percent_positive_pattern(self: &Self, value: i32)
The pattern of positive percent values (0 is n %, 1 is n%, 2 is
%n, 3 is % n).
Panics when the value is out of range. Takes a shared
reference, as the instance is shared through Rc where the
original passes the object around (markup sets the property
on the instance it created).
with_percent_positive_pattern
fn with_percent_positive_pattern(self: Self, value: i32) -> Self
The pattern of positive percent values (0 is n %, 1 is n%, 2 is
%n, 3 is % n).
Panics when the value is out of range.
currency_group_sizes
fn currency_group_sizes(self: &Self) -> &[i32]
The number of digits in each group of currency values, from the decimal separator leftwards; the last size repeats.
set_currency_group_sizes
fn set_currency_group_sizes(self: &mut Self, value: &[i32])
The number of digits in each group of currency values, from the decimal separator leftwards; the last size repeats.
Panics when a size is not between 1 and 9, except the last, which may be 0 (the remaining digits are not grouped).
with_currency_group_sizes
fn with_currency_group_sizes(self: Self, value: &[i32]) -> Self
The number of digits in each group of currency values, from the decimal separator leftwards; the last size repeats.
Panics when a size is not valid.
number_group_sizes
fn number_group_sizes(self: &Self) -> &[i32]
The number of digits in each group of numbers, from the decimal separator leftwards; the last size repeats.
set_number_group_sizes
fn set_number_group_sizes(self: &mut Self, value: &[i32])
The number of digits in each group of numbers, from the decimal separator leftwards; the last size repeats.
Panics when a size is not between 1 and 9, except the last, which may be 0 (the remaining digits are not grouped).
with_number_group_sizes
fn with_number_group_sizes(self: Self, value: &[i32]) -> Self
The number of digits in each group of numbers, from the decimal separator leftwards; the last size repeats.
Panics when a size is not valid.
percent_group_sizes
fn percent_group_sizes(self: &Self) -> &[i32]
The number of digits in each group of percent values, from the decimal separator leftwards; the last size repeats.
set_percent_group_sizes
fn set_percent_group_sizes(self: &mut Self, value: &[i32])
The number of digits in each group of percent values, from the decimal separator leftwards; the last size repeats.
Panics when a size is not between 1 and 9, except the last, which may be 0 (the remaining digits are not grouped).
with_percent_group_sizes
fn with_percent_group_sizes(self: Self, value: &[i32]) -> Self
The number of digits in each group of percent values, from the decimal separator leftwards; the last size repeats.
Panics when a size is not valid.
new
fn new() -> NumberFormatInfo
Format information with the values of the invariant culture (C#
new NumberFormatInfo()).
invariant_info
fn invariant_info() -> Rc<NumberFormatInfo>
The format information of the invariant culture.
current_info
fn current_info() -> Rc<NumberFormatInfo>
The format information of the current culture.
get_instance
fn get_instance(provider: Option<&Rc<NumberFormatInfo>>) -> Rc<NumberFormatInfo>
The given format information, or that of the current culture when
there is none (C# GetInstance(IFormatProvider)).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafePropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherCloneDebugPartialEqDefaultMarkupTypedValueTypeRegistration
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.