pub struct LocalFormat {
pub name: &'static str,
pub digit_separator: char,
pub digit_separator_pattern: &'static str,
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 str
§exponent_separator: char
Implementations§
Source§impl LocalFormat
impl LocalFormat
Sourcepub fn digit_separator_pattern(&self) -> Vec<usize>
pub fn digit_separator_pattern(&self) -> Vec<usize>
Returns a vector indicating where digit separators should be applied on a Money amount.
For example, [3,3,3] indicates that the digit separator should be applied after the 3rd, 6th and 9th digits.
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
Source§impl PartialEq for LocalFormat
impl PartialEq for LocalFormat
impl Eq for LocalFormat
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 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