pub struct LocalFormat {
pub name: &'static str,
pub digit_separator: char,
pub digit_separator_pattern: &'static [usize],
pub exponent_separator: char,
}Expand description
Stores currency formatting metadata for a specific region (e.g. EN-US).
Fields§
§name: &'static str§digit_separator: char§digit_separator_pattern: &'static [usize]§exponent_separator: charImplementations§
Source§impl LocalFormat
impl LocalFormat
Sourcepub fn from_locale(locale: Locale) -> LocalFormat
pub fn from_locale(locale: Locale) -> LocalFormat
Returns the associated LocalFormat given a Locale.
Trait Implementations§
Source§impl Debug for LocalFormat
impl Debug for LocalFormat
impl Eq for LocalFormat
Source§impl PartialEq for LocalFormat
impl PartialEq for LocalFormat
Source§fn eq(&self, other: &LocalFormat) -> bool
fn eq(&self, other: &LocalFormat) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LocalFormat
Auto Trait Implementations§
impl Freeze for LocalFormat
impl RefUnwindSafe for LocalFormat
impl Send for LocalFormat
impl Sync for LocalFormat
impl Unpin for LocalFormat
impl UnsafeUnpin for LocalFormat
impl UnwindSafe for LocalFormat
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