FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    currency_decimal_separator

    fn currency_decimal_separator(self: &Self) -> &str
    

    The decimal separator of currency values.

    Source

    set_currency_decimal_separator

    fn set_currency_decimal_separator(self: &mut Self, value: impl Into<String>)
    

    The decimal separator of currency values.

    Source

    with_currency_decimal_separator

    fn with_currency_decimal_separator(self: Self, value: impl Into<String>) -> Self
    

    The decimal separator of currency values.

    Source

    currency_group_separator

    fn currency_group_separator(self: &Self) -> &str
    

    The separator of the digit groups of currency values.

    Source

    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.

    Source

    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.

    Source

    currency_symbol

    fn currency_symbol(self: &Self) -> &str
    

    The currency symbol.

    Source

    set_currency_symbol

    fn set_currency_symbol(self: &mut Self, value: impl Into<String>)
    

    The currency symbol.

    Source

    with_currency_symbol

    fn with_currency_symbol(self: Self, value: impl Into<String>) -> Self
    

    The currency symbol.

    Source

    nan_symbol

    fn nan_symbol(self: &Self) -> &str
    

    The text of not-a-number.

    Source

    set_nan_symbol

    fn set_nan_symbol(self: &mut Self, value: impl Into<String>)
    

    The text of not-a-number.

    Source

    with_nan_symbol

    fn with_nan_symbol(self: Self, value: impl Into<String>) -> Self
    

    The text of not-a-number.

    Source

    negative_infinity_symbol

    fn negative_infinity_symbol(self: &Self) -> &str
    

    The text of negative infinity.

    Source

    set_negative_infinity_symbol

    fn set_negative_infinity_symbol(self: &mut Self, value: impl Into<String>)
    

    The text of negative infinity.

    Source

    with_negative_infinity_symbol

    fn with_negative_infinity_symbol(self: Self, value: impl Into<String>) -> Self
    

    The text of negative infinity.

    Source

    negative_sign

    fn negative_sign(self: &Self) -> &str
    

    The sign of negative numbers.

    Source

    set_negative_sign

    fn set_negative_sign(self: &mut Self, value: impl Into<String>)
    

    The sign of negative numbers.

    Source

    with_negative_sign

    fn with_negative_sign(self: Self, value: impl Into<String>) -> Self
    

    The sign of negative numbers.

    Source

    number_decimal_separator

    fn number_decimal_separator(self: &Self) -> &str
    

    The decimal separator of numbers.

    Source

    set_number_decimal_separator

    fn set_number_decimal_separator(self: &mut Self, value: impl Into<String>)
    

    The decimal separator of numbers.

    Source

    with_number_decimal_separator

    fn with_number_decimal_separator(self: Self, value: impl Into<String>) -> Self
    

    The decimal separator of numbers.

    Source

    number_group_separator

    fn number_group_separator(self: &Self) -> &str
    

    The separator of the digit groups of numbers.

    Source

    set_number_group_separator

    fn set_number_group_separator(self: &mut Self, value: impl Into<String>)
    

    The separator of the digit groups of numbers.

    Source

    with_number_group_separator

    fn with_number_group_separator(self: Self, value: impl Into<String>) -> Self
    

    The separator of the digit groups of numbers.

    Source

    percent_decimal_separator

    fn percent_decimal_separator(self: &Self) -> &str
    

    The decimal separator of percent values.

    Source

    set_percent_decimal_separator

    fn set_percent_decimal_separator(self: &mut Self, value: impl Into<String>)
    

    The decimal separator of percent values.

    Source

    with_percent_decimal_separator

    fn with_percent_decimal_separator(self: Self, value: impl Into<String>) -> Self
    

    The decimal separator of percent values.

    Source

    percent_group_separator

    fn percent_group_separator(self: &Self) -> &str
    

    The separator of the digit groups of percent values.

    Source

    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.

    Source

    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.

    Source

    percent_symbol

    fn percent_symbol(self: &Self) -> &str
    

    The percent symbol.

    Source

    set_percent_symbol

    fn set_percent_symbol(self: &mut Self, value: impl Into<String>)
    

    The percent symbol.

    Source

    with_percent_symbol

    fn with_percent_symbol(self: Self, value: impl Into<String>) -> Self
    

    The percent symbol.

    Source

    per_mille_symbol

    fn per_mille_symbol(self: &Self) -> &str
    

    The per mille symbol.

    Source

    set_per_mille_symbol

    fn set_per_mille_symbol(self: &mut Self, value: impl Into<String>)
    

    The per mille symbol.

    Source

    with_per_mille_symbol

    fn with_per_mille_symbol(self: Self, value: impl Into<String>) -> Self
    

    The per mille symbol.

    Source

    positive_infinity_symbol

    fn positive_infinity_symbol(self: &Self) -> &str
    

    The text of positive infinity.

    Source

    set_positive_infinity_symbol

    fn set_positive_infinity_symbol(self: &mut Self, value: impl Into<String>)
    

    The text of positive infinity.

    Source

    with_positive_infinity_symbol

    fn with_positive_infinity_symbol(self: Self, value: impl Into<String>) -> Self
    

    The text of positive infinity.

    Source

    positive_sign

    fn positive_sign(self: &Self) -> &str
    

    The sign of positive numbers.

    Source

    set_positive_sign

    fn set_positive_sign(self: &mut Self, value: impl Into<String>)
    

    The sign of positive numbers.

    Source

    with_positive_sign

    fn with_positive_sign(self: Self, value: impl Into<String>) -> Self
    

    The sign of positive numbers.

    Source

    currency_decimal_digits

    fn currency_decimal_digits(self: &Self) -> i32
    

    The number of decimal places of currency values.

    Source

    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).

    Source

    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.

    Source

    currency_negative_pattern

    fn currency_negative_pattern(self: &Self) -> i32
    

    The pattern of negative currency values (0 is ($n), 1 is -$n).

    Source

    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).

    Source

    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.

    Source

    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 $).

    Source

    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).

    Source

    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.

    Source

    number_decimal_digits

    fn number_decimal_digits(self: &Self) -> i32
    

    The number of decimal places of numbers.

    Source

    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).

    Source

    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.

    Source

    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 -).

    Source

    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).

    Source

    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.

    Source

    percent_decimal_digits

    fn percent_decimal_digits(self: &Self) -> i32
    

    The number of decimal places of percent values.

    Source

    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).

    Source

    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.

    Source

    percent_negative_pattern

    fn percent_negative_pattern(self: &Self) -> i32
    

    The pattern of negative percent values (0 is -n %, 1 is -n%).

    Source

    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).

    Source

    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.

    Source

    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).

    Source

    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).

    Source

    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.

    Source

    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.

    Source

    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).

    Source

    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.

    Source

    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.

    Source

    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).

    Source

    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.

    Source

    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.

    Source

    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).

    Source

    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.

    Source

    new

    fn new() -> NumberFormatInfo
    

    Format information with the values of the invariant culture (C# new NumberFormatInfo()).

    Source

    invariant_info

    fn invariant_info() -> Rc<NumberFormatInfo>
    

    The format information of the invariant culture.

    Source

    current_info

    fn current_info() -> Rc<NumberFormatInfo>
    

    The format information of the current culture.

    Source

    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)).

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.