I18NFallback

Trait I18NFallback 

Source
pub trait I18NFallback {
    // Required method
    fn fallback() -> Self;
}
Expand description

A trait for defining fallback behavior in internationalization (i18n). It should be used when defining the main i18n component, it will be used when a given i18n resource tries to be acquired but isn’t present for the given locale at that moment.

Required Methods§

Source

fn fallback() -> Self

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§