Struct amethyst_assets::Directory[][src]

pub struct Directory { /* fields omitted */ }

Directory source.

Please note that there is a default directory source inside the Loader, which is automatically used when you call load. In case you want another, second, directory for assets, you can instantiate one yourself, too. Please use Loader::load_from then.

Methods

impl Directory
[src]

Creates a new directory storage.

Trait Implementations

impl Debug for Directory
[src]

Formats the value using the given formatter. Read more

impl Source for Directory
[src]

This is called to check if an asset has been modified. Read more

Loads the bytes given a path. Read more

Returns both the result of load and modified as a tuple. There's a default implementation which just calls both methods, but you may be able to provide a more optimized version yourself. Read more

Auto Trait Implementations

impl Send for Directory

impl Sync for Directory