Struct amfnengine::core::elem_locale::ElemLocale [−]
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
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 currency_code(&self) -> &str
pub fn decimal_digits(&self) -> usize
pub fn format_in(&self) -> &ElemLocaleFormat
pub fn format_out(&self) -> &ElemLocaleFormat
pub fn resources(&self) -> &HashMap<String, String>
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
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,
pub 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.
pub 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>,