Trait i18n_embed::I18nAssets[][src]

pub trait I18nAssets {
    fn get_file(&self, file_path: &str) -> Option<Cow<'_, [u8]>>;
fn filenames_iter(&self) -> Box<dyn Iterator<Item = String>>; }
Expand description

A trait to handle the retrieval of localization assets.

Required methods

Get a localization asset (returns None if the asset does not exist, or unable to obtain the asset due to a non-critical error).

Get an iterator over the filenames of the localization assets.

Implementors