[][src]Struct amethyst_assets::Directory

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]

pub fn new<P>(loc: P) -> Self where
    P: Into<PathBuf>, 
[src]

Creates a new directory storage.

Trait Implementations

impl Source for Directory[src]

fn load_with_metadata(&self, path: &str) -> Result<(Vec<u8>, u64), Error>[src]

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

impl Debug for Directory[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> Event for T where
    T: Send + Sync + 'static, 

impl<T> Resource for T where
    T: Any + Send + Sync
[src]

impl<T> Any for T where
    T: Any

impl<T> Erased for T