Struct rofl::FileLoader [] [src]

pub struct FileLoader<'pl> { /* fields omitted */ }

Loader for files in given directory.

The resources it doles out are just file handles (std::fs::File). Wrappers around this loaded can then implement their own decoding.

Methods

impl<'pl> FileLoader<'pl>
[src]

Create loader for files within given directory.

Create loader for files within given directory that have the specified file extension.

Create a loader which only loads files from the specified directory that have one of the extensions given.

Create a loader which only loads files from the specified directory that additionally match a specified boolean predicate for their paths.

Trait Implementations

impl<'pl> Debug for FileLoader<'pl>
[src]

Formats the value using the given formatter.

impl<'pl> Loader for FileLoader<'pl>
[src]

Type of resources that this loader can load.

Error that may occur while loading the resource.

Load a File resource from loader's directory.