pub trait AssetProvider {
// Required method
fn by_id(&self, id: &str) -> Option<AssetData>;
}Expand description
Resolve asset bytes by stable id.
Implementations must never perform file I/O. The CLI (or other callers) load bytes externally and register them before passing the provider in.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".