pub trait SyncAssetKeyExt<T: Clone + Sync + Send + 'static>: SyncAssetKey<T> {
    // Required methods
    fn key(&self) -> String;
    fn get(&self, assets: &AssetCache) -> T;
    fn try_get(&self, assets: &AssetCache) -> Option<T>;
    fn insert(&self, assets: &AssetCache, value: T);
    fn exists(&self, assets: &AssetCache) -> bool;
}

Required Methods§

source

fn key(&self) -> String

source

fn get(&self, assets: &AssetCache) -> T

source

fn try_get(&self, assets: &AssetCache) -> Option<T>

source

fn insert(&self, assets: &AssetCache, value: T)

source

fn exists(&self, assets: &AssetCache) -> bool

Implementors§

source§

impl<T: Clone + Sync + Send + 'static, K: SyncAssetKey<T>> SyncAssetKeyExt<T> for K