BilingualError

Trait BilingualError 

Source
pub trait BilingualError {
    // Required method
    fn message(&self, lang: Language) -> &str;
}
Expand description

Trait for errors that provide bilingual messages.

Required Methods§

Source

fn message(&self, lang: Language) -> &str

Returns the error message in the specified language.

Implementors§