Struct i18n_embed::FileSystemAssets[][src]

pub struct FileSystemAssets { /* fields omitted */ }
Expand description

An I18nAssets implementation which pulls assets from the OS file system.

Implementations

Create a new FileSystemAssets instance, all files will be read from within the specified base directory. Will panic if the specified base_dir does not exist, or is not a valid directory.

Trait Implementations

Formats the value using the given formatter. Read more

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

Get an iterator over the filenames of the localization assets.

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.