Struct amethyst_assets::SingleFile[][src]

pub struct SingleFile<A: Asset, F: Format<A>> { /* fields omitted */ }

An implementation of Reload which just stores the modification time and the path of the file.

Methods

impl<A: Asset, F: Format<A>> SingleFile<A, F>
[src]

Creates a new SingleFile reload object.

Trait Implementations

impl<A, F> Clone for SingleFile<A, F> where
    A: Asset,
    F: Clone + Format<A>,
    F::Options: Clone
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<A, F> Reload<A> for SingleFile<A, F> where
    A: Asset,
    F: Clone + Format<A> + Sync,
    <F as Format<A>>::Options: Clone + Sync
[src]

Checks if a reload is necessary.

Returns the asset name.

Returns the format name.

Reloads the asset.

Auto Trait Implementations

impl<A, F> Send for SingleFile<A, F> where
    <F as Format<A>>::Options: Send

impl<A, F> Sync for SingleFile<A, F> where
    F: Sync,
    <F as Format<A>>::Options: Sync