Skip to main content

AssetLoader

Trait AssetLoader 

Source
pub trait AssetLoader: Send + Sync {
    // Required methods
    fn extensions(&self) -> &[&str];
    fn load(&self, path: &Path) -> Result<LoadedMeshSource>;

    // Provided method
    fn name(&self) -> &str { ... }
}

Required Methods§

Source

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

Source

fn load(&self, path: &Path) -> Result<LoadedMeshSource>

Provided Methods§

Source

fn name(&self) -> &str

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§