Struct amfnengine::engine::list_locale::ListLocale
[−]pub struct ListLocale { /* private fields */ }
Implementations
impl ListLocale
impl ListLocale
List of locales implementation.
pub fn new() -> ListLocale
pub fn new() -> ListLocale
pub fn add_locale(
&mut self,
locale_str_param: &str,
currency_code_param: &str,
decimal_digits_param: usize,
date_in_format_param: ElemLocaleFormat,
date_out_format_param: ElemLocaleFormat,
resources_param: HashMap<String, String>
)
pub fn add_locale(
&mut self,
locale_str_param: &str,
currency_code_param: &str,
decimal_digits_param: usize,
date_in_format_param: ElemLocaleFormat,
date_out_format_param: ElemLocaleFormat,
resources_param: HashMap<String, String>
)
Add a new locale to the locale list.
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.date_in_format
- Date in format.date_out_format
- Date out format.resources_param
- Resources hash map.
pub fn append_locales(&mut self, list_locale: ListLocale)
pub fn append_locales(&mut self, list_locale: ListLocale)
pub fn copy(&self) -> ListLocale
pub fn copy(&self) -> ListLocale
pub fn locale_str(&self, event: bool) -> &str
pub fn locale_str(&self, event: bool) -> &str
pub fn currency_code(&self, event: bool) -> &str
pub fn currency_code(&self, event: bool) -> &str
pub fn decimal_digits(&self, event: bool) -> usize
pub fn decimal_digits(&self, event: bool) -> usize
pub fn format_in(&self, event: bool) -> &ElemLocaleFormat
pub fn format_in(&self, event: bool) -> &ElemLocaleFormat
pub fn format_out(&self, event: bool) -> &ElemLocaleFormat
pub fn format_out(&self, event: bool) -> &ElemLocaleFormat
pub fn user_locale(&self) -> &ElemLocale
pub fn user_locale(&self) -> &ElemLocale
pub fn cashflow_locale(&self) -> &ElemLocale
pub fn cashflow_locale(&self) -> &ElemLocale
pub fn event_locale(&self) -> &ElemLocale
pub fn event_locale(&self) -> &ElemLocale
pub fn cashflow_currency_code(&self) -> &str
pub fn cashflow_currency_code(&self) -> &str
pub fn event_currency_code(&self) -> &str
pub fn event_currency_code(&self) -> &str
pub fn format_date_in(&self, display_val: &str) -> String
pub fn format_date_in(&self, display_val: &str) -> String
pub fn format_integer_in(&self, display_val: &str) -> String
pub fn format_integer_in(&self, display_val: &str) -> String
pub fn format_decimal_in(&self, display_val: &str) -> String
pub fn format_decimal_in(&self, display_val: &str) -> String
pub fn format_currency_in(&self, display_val: &str) -> String
pub fn format_currency_in(&self, display_val: &str) -> String
pub fn format_date_out(&self, val: usize) -> String
pub fn format_date_out(&self, val: usize) -> String
pub fn format_integeri_out(&self, val: i32) -> String
pub fn format_integeri_out(&self, val: i32) -> String
pub fn format_integer_out(&self, val: usize) -> String
pub fn format_integer_out(&self, val: usize) -> String
pub fn format_decimal_out(&self, val: Decimal) -> String
pub fn format_decimal_out(&self, val: Decimal) -> String
pub fn format_currency_out(&self, val: Decimal, decimal_digits: usize) -> String
pub fn format_currency_out(&self, val: Decimal, decimal_digits: usize) -> String
pub fn get_locale_index(&self, event: bool) -> usize
pub fn get_locale_index(&self, event: bool) -> usize
pub fn get_locale(&self, event: bool) -> &ElemLocale
pub fn get_locale(&self, event: bool) -> &ElemLocale
pub fn get_locale_str(&self, event: bool) -> &str
pub fn get_locale_str(&self, event: bool) -> &str
pub fn get_resource(&self, key: &str) -> &str
pub fn get_resource(&self, key: &str) -> &str
pub fn select_user_locale(&self, locale_str_param: &str)
pub fn select_user_locale(&self, locale_str_param: &str)
pub fn select_cashflow_locale(&self, locale_str_param: &str)
pub fn select_cashflow_locale(&self, locale_str_param: &str)
pub fn select_event_locale(&self, locale_str_param: &str)
pub fn select_event_locale(&self, locale_str_param: &str)
Trait Implementations
impl Default for ListLocale
impl Default for ListLocale
List of locales default implementation.
impl ListTrait for ListLocale
impl ListTrait for ListLocale
List of currently active cashflows list implementation.
Auto Trait Implementations
impl !RefUnwindSafe for ListLocale
impl Send for ListLocale
impl !Sync for ListLocale
impl Unpin for ListLocale
impl UnwindSafe for ListLocale
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