Trait num_format::Format

source ·
pub trait Format {
    // Required methods
    fn decimal(&self) -> DecimalStr<'_>;
    fn grouping(&self) -> Grouping;
    fn infinity(&self) -> InfinityStr<'_>;
    fn minus_sign(&self) -> MinusSignStr<'_>;
    fn nan(&self) -> NanStr<'_>;
    fn plus_sign(&self) -> PlusSignStr<'_>;
    fn separator(&self) -> SeparatorStr<'_>;
}
Expand description

Trait that abstracts over CustomFormat, Locale, and SystemLocale.

Required Methods§

source

fn decimal(&self) -> DecimalStr<'_>

Returns the string representation of a decimal point.

source

fn grouping(&self) -> Grouping

Returns the Grouping to use for separating digits. (see Grouping)

source

fn infinity(&self) -> InfinityStr<'_>

Returns the string representation of an infinity symbol.

source

fn minus_sign(&self) -> MinusSignStr<'_>

Returns the string representation of a minus sign.

source

fn nan(&self) -> NanStr<'_>

Returns the string representation of NaN.

source

fn plus_sign(&self) -> PlusSignStr<'_>

Returns the string representation of a plus sign.

source

fn separator(&self) -> SeparatorStr<'_>

Returns the string representation of a thousands separator.

Implementors§