Trait MessageBundle

Source
pub trait MessageBundle: LanguageAware + Default {
    // Required methods
    fn get(language_id: &str) -> Option<Self>
       where Self: Sized;
    fn default_language_id() -> &'static str;
    fn supported_language_ids() -> &'static [&'static str];
}

Required Methods§

Source

fn get(language_id: &str) -> Option<Self>
where Self: Sized,

Source

fn default_language_id() -> &'static str

Source

fn supported_language_ids() -> &'static [&'static str]

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§