pub struct ListLocale { /* private fields */ }

Implementations

List of locales implementation.

Create and return a new list of locale elements.

Return
  • See description.

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.

Append to the list locale.

Arguments
  • list_locale - See description.

Copy the locale list and return a new locale list.

Arguments
  • event - Check event level.
Return
  • See description.

Get the locale string.

Arguments
  • event - Check event level.
Return
  • See description.

Get the currency code.

Arguments
  • event - Check event level.
Return
  • See description.

Get the decimal digits.

Arguments
  • event - Check event level.
Return
  • See description.

Get the format in.

Arguments
  • event - Check event level.
Return
  • See description.

Get the format out.

Arguments
  • event - Check event level.
Return
  • See description.

Get the resources.

Arguments
  • event - Check event level.
Return
  • See description.

Get the user locale.

Return
  • See description.

Get the cashflow locale.

Return
  • See description.

Get the event locale.

Return
  • See description.

Return the cashflow currency code.

Return
  • See description.

Return the event currency code.

Return
  • See description.

Format a date and return the internal format.

Arguments
  • display_val - The display value to parse.
Return
  • See description.

Format an integer and return the internal format.

Arguments
  • display_val - The display value to parse.
Return
  • See description.

Format a decimal and return the internal format.

Arguments
  • display_val - The display value to parse.
Return
  • See description.

Format a currency and return the internal format.

Arguments
  • display_val - The display value to parse.
Return
  • See description.

Format and return a date string.

Arguments
  • val - The usize date value to format.
Return
  • See description.

Format and return an integer string.

Arguments
  • val - The i32 value to format.
Return
  • See description.

Format and return an integer string.

Arguments
  • val - The usize value to format.
Return
  • See description.

Format and return a decimal string.

Arguments
  • val - The decimal value to format.
Return
  • See description.

Format and return a currency string.

Arguments
  • val - The decimal value to format.
  • decimal_digits - The number of decimal digits to round.
Return
  • See description.

Get the most relevant locale index.

Arguments
  • event - Check event level.
Return
  • See description.

Get the most relevant locale.

Arguments
  • event - Check event level.
Return
  • See description.

Get the most relevant locale string.

Arguments
  • event - Check event level.
Return
  • See description.

Get the resource string for the locale.

Arguments
  • key - The resource key.
Return
  • See description.

Select a user locale parameter.

Arguments
  • locale_str_param - Locale string to select.

Select a cashflow locale parameter.

Arguments
  • locale_str_param - Locale string to select.

Select an event locale parameter.

Arguments
  • locale_str_param - Locale string to select.

Fill leading zeros for a number.

Arguments
  • val - The number to zero fill.
  • size - The number of digits.
Return
  • See description.

Trait Implementations

List of locales default implementation.

Create and return a new list of locale elements.

Return
  • See description.

List of currently active cashflows list implementation.

Clear all locales selects.

Get the count of the locales list.

Return
  • See description.

Get the index of the selected user locale (starting from 0).

Return
  • See description.

Select a locale based upon an index value.

Arguments
  • index_param - The index value of the locale to select (starting from 0).
Return
  • True if successful, otherwise false.

Set the list index.

Arguments
  • index_param - See description.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.