Struct i18n_embed::DefaultLocalizer[][src]

pub struct DefaultLocalizer<'a> {
    pub language_loader: &'a dyn LanguageLoader,
    pub i18n_assets: &'a dyn I18nAssets,
}
Expand description

A simple default implemenation of the Localizer trait.

Fields

language_loader: &'a dyn LanguageLoader

The LanguageLoader used by this localizer.

i18n_assets: &'a dyn I18nAssets

The source of assets used by this localizer.

Implementations

Create a new DefaultLocalizer.

Trait Implementations

Formats the value using the given formatter. Read more

The LanguageLoader used by this localizer.

The source of localization assets used by this localizer

The available languages that can be selected by this localizer.

Automatically the language currently requested by the system by the the LanguageRequester), and load it using the provided LanguageLoader. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.