Struct amfnengine::engine::elem_locale::ElemLocale
[−]pub struct ElemLocale { /* private fields */ }
Expand description
The locale definition.
Implementations
impl ElemLocale
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
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
pub fn locale_str(&self) -> &str
pub fn currency_code(&self) -> &str
pub fn currency_code(&self) -> &str
pub fn decimal_digits(&self) -> usize
pub fn decimal_digits(&self) -> usize
pub fn format_in(&self) -> &ElemLocaleFormat
pub fn format_in(&self) -> &ElemLocaleFormat
pub fn format_out(&self) -> &ElemLocaleFormat
pub fn format_out(&self) -> &ElemLocaleFormat
Auto Trait Implementations
impl RefUnwindSafe for ElemLocale
impl Send for ElemLocale
impl Sync for ElemLocale
impl Unpin for ElemLocale
impl UnwindSafe for ElemLocale
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more