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]
pub fn new(
format: F,
modified: u64,
options: F::Options,
path: String,
source: Arc<Source>
) -> Self
[src]
format: F,
modified: u64,
options: F::Options,
path: String,
source: Arc<Source>
) -> Self
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]
A: Asset,
F: Clone + Format<A>,
F::Options: Clone,
fn clone(&self) -> Self
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
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]
A: Asset,
F: Clone + Format<A> + Sync,
<F as Format<A>>::Options: Clone + Sync,