[][src]Trait num_format::ToFormattedString

pub trait ToFormattedString: Sealed {
    fn to_formatted_string<F>(&self, format: &F) -> String
    where
        F: Format
, { ... } }

A key trait. Gives numbers the to_formatted_string method.

This trait is sealed; so you may not implement it on your own types.

Provided methods

fn to_formatted_string<F>(&self, format: &F) -> String where
    F: Format

Returns a string representation of the number formatted according to the provided format.

Loading content...

Implementors

impl<T> ToFormattedString for T where
    T: ToFormattedStr
[src]

fn to_formatted_string<F>(&self, format: &F) -> String where
    F: Format
[src]

Loading content...