Skip to main content

AssetCombined

Trait AssetCombined 

Source
pub trait AssetCombined: AssetExt {
    // Required method
    fn load_and_combine(
        cache: &'static AssetCache,
        specifier: &str,
    ) -> Result<AssetHandle<Self>, Error>;

    // Provided methods
    fn load_and_combine_static(
        specifier: &str,
    ) -> Result<AssetHandle<Self>, Error> { ... }
    fn load_expect_combined(
        cache: &'static AssetCache,
        specifier: &str,
    ) -> AssetHandle<Self> { ... }
    fn load_expect_combined_static(specifier: &str) -> AssetHandle<Self> { ... }
}
Expand description

Extension to AssetExt to combine Ron files from filesystem and plugins

Required Methods§

Source

fn load_and_combine( cache: &'static AssetCache, specifier: &str, ) -> Result<AssetHandle<Self>, Error>

Provided Methods§

Source

fn load_and_combine_static(specifier: &str) -> Result<AssetHandle<Self>, Error>

Load combined table without hot-reload support

Source

fn load_expect_combined( cache: &'static AssetCache, specifier: &str, ) -> AssetHandle<Self>

Source

fn load_expect_combined_static(specifier: &str) -> AssetHandle<Self>

Load combined table without hot-reload support, panic on error

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§