Trait bones_asset::AssetLoader
source · pub trait AssetLoader: Sync + Send + 'static {
// Required method
fn load(&self, ctx: AssetLoadCtx, bytes: &[u8]) -> Boxed<Result<SchemaBox>>;
}
Expand description
A custom assset loader.
pub trait AssetLoader: Sync + Send + 'static {
// Required method
fn load(&self, ctx: AssetLoadCtx, bytes: &[u8]) -> Boxed<Result<SchemaBox>>;
}
A custom assset loader.