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]

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

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.

Loading content...

Implementors

impl Format for Locale[src]

impl Format for CustomFormat[src]

Loading content...