Skip to main content

Localizer

Trait Localizer 

Source
pub trait Localizer {
    // Required method
    fn localize(&self, key: &str, args: &HashMap<String, String>) -> String;
}
Expand description

A trait for localizing diagnostic messages.

Required Methods§

Source

fn localize(&self, key: &str, args: &HashMap<String, String>) -> String

Localize a message given its key and arguments.

Implementations on Foreign Types§

Source§

impl Localizer for ()

Source§

fn localize(&self, _key: &str, _args: &HashMap<String, String>) -> String

Implementors§