ambient_asset_cache

Trait SyncAssetKeyExt

Source
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