[−][src]Struct rusty_money::LocalFormat
Contains metadata used to format currencies for a specific Locale.
Fields
name: &'static str
digit_separator: char
digit_separator_pattern: &'static str
exponent_separator: char
Methods
impl LocalFormat
[src]
pub fn digit_separator_pattern(&self) -> Vec<usize>
[src]
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.
pub fn from_locale(locale: Locale) -> LocalFormat
[src]
Returns the associated LocalFormat given a Locale.
Trait Implementations
impl Debug for LocalFormat
[src]
impl Eq for LocalFormat
[src]
impl PartialEq<LocalFormat> for LocalFormat
[src]
fn eq(&self, other: &LocalFormat) -> bool
[src]
fn ne(&self, other: &LocalFormat) -> bool
[src]
impl StructuralEq for LocalFormat
[src]
impl StructuralPartialEq for LocalFormat
[src]
Auto Trait Implementations
impl RefUnwindSafe for LocalFormat
impl Send for LocalFormat
impl Sync for LocalFormat
impl Unpin for LocalFormat
impl UnwindSafe for LocalFormat
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,