Trait amethyst_assets::Source
source · pub trait Source: Send + Sync + 'static {
fn modified(&self, path: &str) -> Result<u64>;
fn load(&self, path: &str) -> Result<Vec<u8>>;
fn load_with_metadata(&self, path: &str) -> Result<(Vec<u8>, u64)> { ... }
}
Expand description
A trait for asset sources, which provides methods for loading bytes.