Trait num_format::Format

source ·
pub trait Format {
    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§

Returns the string representation of a decimal point.

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

Returns the string representation of an infinity symbol.

Returns the string representation of a minus sign.

Returns the string representation of NaN.

Returns the string representation of a plus sign.

Returns the string representation of a thousands separator.

Implementors§