pub struct NumberFormatter;Implementations§
Source§impl NumberFormatter
impl NumberFormatter
pub fn format_int(n: i64, locale: Locale) -> String
pub fn format_float(f: f64, decimals: usize, locale: Locale) -> String
pub fn format_percent(f: f32, locale: Locale) -> String
pub fn format_currency(amount: i64, locale: Locale) -> String
pub fn format_duration(secs: f64, locale: Locale) -> String
pub fn format_large(n: i64, locale: Locale) -> String
pub fn format_ordinal(n: u32, locale: Locale) -> String
Auto Trait Implementations§
impl Freeze for NumberFormatter
impl RefUnwindSafe for NumberFormatter
impl Send for NumberFormatter
impl Sync for NumberFormatter
impl Unpin for NumberFormatter
impl UnsafeUnpin for NumberFormatter
impl UnwindSafe for NumberFormatter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more