Struct locale::Numeric
[−]
[src]
pub struct Numeric { pub decimal_sep: String, pub thousands_sep: String, }
Information on how to format numbers.
Fields
decimal_sep: String
The punctuation that separates the decimal part of a non-integer number. Usually a decimal point or a decimal comma.
thousands_sep: String
The punctuation that separates groups of digits in long numbers.
Methods
impl Numeric
[src]
fn load_user_locale() -> Result<Numeric>
fn english() -> Numeric
fn new(decimal_sep: &str, thousands_sep: &str) -> Numeric
fn format_int<I: Display>(&self, input: I) -> String
fn format_float<F: Display>(&self, input: F, decimal_places: usize) -> String
Trait Implementations
impl Debug for Numeric
[src]
impl Clone for Numeric
[src]
fn clone(&self) -> Numeric
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more