Struct amfnengine::core::elem_locale::ElemLocale[]

pub struct ElemLocale { /* fields omitted */ }

The locale definition.

Implementations

impl ElemLocale

The locale implementation.

pub fn new(
    locale_str_param: &str,
    currency_code_param: &str,
    decimal_digits_param: usize,
    format_in_param: ElemLocaleFormat,
    format_out_param: ElemLocaleFormat,
    resources_param: HashMap<String, String>
) -> ElemLocale

Create a new locale element.

Arguments

  • locale_str_param - ISO language code (ISO 639)_ISO country code (ISO 3166).
  • currency_code_param - ISO currency code (ISO 4217).
  • decimal_digits_param - Currency decimal digits.
  • format_in_param - Format in.
  • format_out_param - Format out.
  • resources_param - Resources hash map.

Return

  • See description.

pub fn locale_str(&self) -> &str

Get the locale string.

Return

  • See description.

pub fn currency_code(&self) -> &str

Get the currency code.

Return

  • See description.

pub fn decimal_digits(&self) -> usize

Get the currency decimal digits.

Return

  • See description.

pub fn format_in(&self) -> &ElemLocaleFormat

Get the format in.

Return

  • See description.

pub fn format_out(&self) -> &ElemLocaleFormat

Get the format out.

Return

  • See description.

pub fn resources(&self) -> &HashMap<String, String>

Get the resources.

Return

  • See description.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.