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§
sourcefn decimal(&self) -> DecimalStr<'_>
fn decimal(&self) -> DecimalStr<'_>
Returns the string representation of a decimal point.
sourcefn infinity(&self) -> InfinityStr<'_>
fn infinity(&self) -> InfinityStr<'_>
Returns the string representation of an infinity symbol.
sourcefn minus_sign(&self) -> MinusSignStr<'_>
fn minus_sign(&self) -> MinusSignStr<'_>
Returns the string representation of a minus sign.
sourcefn plus_sign(&self) -> PlusSignStr<'_>
fn plus_sign(&self) -> PlusSignStr<'_>
Returns the string representation of a plus sign.
sourcefn separator(&self) -> SeparatorStr<'_>
fn separator(&self) -> SeparatorStr<'_>
Returns the string representation of a thousands separator.