[][src]Trait bevy_asset::AssetLoader

pub trait AssetLoader<T>: Send + Sync + 'static {
    fn from_bytes(&self, asset_path: &Path, bytes: Vec<u8>) -> Result<T, Error>;
fn extensions(&self) -> &[&str]; fn load_from_file(&self, asset_path: &Path) -> Result<T, AssetLoadError> { ... } }

A loader for a given asset of type T

Required methods

fn from_bytes(&self, asset_path: &Path, bytes: Vec<u8>) -> Result<T, Error>

fn extensions(&self) -> &[&str]

Loading content...

Provided methods

fn load_from_file(&self, asset_path: &Path) -> Result<T, AssetLoadError>

Loading content...

Implementors

Loading content...