Trait num_format::Format [−][src]
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<'_>; }
Trait that abstracts over CustomFormat
, Locale
, and SystemLocale
.
Required methods
fn decimal(&self) -> DecimalStr<'_>
[src]
Returns the string representation of a decimal point.
fn grouping(&self) -> Grouping
[src]
fn infinity(&self) -> InfinityStr<'_>
[src]
Returns the string representation of an infinity symbol.
fn minus_sign(&self) -> MinusSignStr<'_>
[src]
Returns the string representation of a minus sign.
fn nan(&self) -> NanStr<'_>
[src]
Returns the string representation of NaN.
fn plus_sign(&self) -> PlusSignStr<'_>
[src]
Returns the string representation of a plus sign.
fn separator(&self) -> SeparatorStr<'_>
[src]
Returns the string representation of a thousands separator.
Implementors
impl Format for Locale
[src]
impl Format for Locale
[src]fn decimal(&self) -> DecimalStr<'_>
[src]
fn grouping(&self) -> Grouping
[src]
fn infinity(&self) -> InfinityStr<'_>
[src]
fn minus_sign(&self) -> MinusSignStr<'_>
[src]
fn nan(&self) -> NanStr<'_>
[src]
fn plus_sign(&self) -> PlusSignStr<'_>
[src]
fn separator(&self) -> SeparatorStr<'_>
[src]
impl Format for CustomFormat
[src]
impl Format for CustomFormat
[src]