pub trait Loader<T> {
const EXTENSION: &'static str;
// Required method
fn load(bytes: &[u8], id: &Id) -> T;
}Expand description
How an asset should be loaded.
Required Associated Constants§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.