Struct i18n_embed::LanguageRequesterImpl[][src]

pub struct LanguageRequesterImpl<'a> { /* fields omitted */ }
Expand description

Provide the functionality for overrides and listeners for a LanguageRequester implementation.

Implementations

Create a new LanguageRequesterImpl.

Set an override for the requested language which is used when the LanguageRequesterImpl#poll() method is called. If None, then no override is used.

Add a weak reference to a Localizer, which listens to changes to the current language.

Add a reference to Localizer, which listens to changes to the current language.

With the provided requested_languages call Localizer#select() on each of the listeners.

With the provided requested_languages call Localizer#select() on each of the listeners. The requested_languages may be ignored if #set_language_override() has been set.

The languages reported to be available in the listener Localizers.

Gets a HashMap with what each language is currently set (value) per domain (key).

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. 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.