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§