Trait CurrencyLocale

Source
pub trait CurrencyLocale {
    // Required methods
    fn separator(&self) -> char;
    fn thousand_separator(&self) -> char;
    fn currency_symbol(&self) -> &'static str;
}
Expand description

A trait for defining currency localization methods.

Required Methods§

Source

fn separator(&self) -> char

Retrieves the separator used for the currency.

Source

fn thousand_separator(&self) -> char

Retrieves the thousand separator used for the currency.

Source

fn currency_symbol(&self) -> &'static str

Retrieves the currency symbol.

Implementors§