[][src]Trait num_format::Format

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

Returns the string representation of a decimal point.

fn grouping(&self) -> Grouping

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

fn infinity(&self) -> InfinityStr

Returns the string representation of an infinity symbol.

fn minus_sign(&self) -> MinusSignStr

Returns the string representation of a minus sign.

fn nan(&self) -> NanStr

Returns the string representation of NaN.

fn plus_sign(&self) -> PlusSignStr

Returns the string representation of a plus sign.

fn separator(&self) -> SeparatorStr

Returns the string representation of a thousands separator.

Loading content...

Implementors

Loading content...