Trait assets_manager::AsAnyCache

source ·
pub trait AsAnyCache<'a> {
    // Required method
    fn as_any_cache(&self) -> AnyCache<'a>;
}
Expand description

Used to get an AnyCache from a type.

This is useful to make generic functions that can work with any cache type.

Required Methods§

source

fn as_any_cache(&self) -> AnyCache<'a>

Converts this type to an AnyCache.

Implementations on Foreign Types§

source§

impl<'a, T: AsAnyCache<'a>> AsAnyCache<'a> for &T

Implementors§

source§

impl<'a> AsAnyCache<'a> for AnyCache<'a>

source§

impl<'a, S: Source> AsAnyCache<'a> for &'a AssetCache<S>

source§

impl<'a, S: Source> AsAnyCache<'a> for &'a LocalAssetCache<S>