pub trait AssetCombined: AssetExt {
// Required method
fn load_and_combine(
reloading_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(
reloading_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§
fn load_and_combine( reloading_cache: &'static AssetCache, specifier: &str, ) -> Result<AssetHandle<Self>, Error>
Provided Methods§
Sourcefn load_and_combine_static(specifier: &str) -> Result<AssetHandle<Self>, Error>
fn load_and_combine_static(specifier: &str) -> Result<AssetHandle<Self>, Error>
Load combined table without hot-reload support
fn load_expect_combined( reloading_cache: &'static AssetCache, specifier: &str, ) -> AssetHandle<Self>
Sourcefn load_expect_combined_static(specifier: &str) -> AssetHandle<Self>
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", so this trait is not object safe.