Trait num_format::ToFormattedString [−][src]
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, [src]
F: Format,
Returns a string representation of the number formatted according to the provided format.
Implementors
impl<T> ToFormattedString for T where
T: ToFormattedStr, [src]
impl<T> ToFormattedString for T where
T: ToFormattedStr, [src]