Trait amethyst::asset_manager::AssetReadStorage
[−]
[src]
pub trait AssetReadStorage<T> { fn read(&self, id: AssetId) -> Option<&T>; }
Describes an asset reader type that can read assets of type T
.
Required Methods
fn read(&self, id: AssetId) -> Option<&T>
Returns Some(&T)
given the asset ID, returns None
if the asset does
not exist.
Implementors
impl<'a, T: Any + Send + Sync> AssetReadStorage<T> for Storage<Asset<T>, RwLockReadGuard<'a, Allocator>, RwLockReadGuard<'a, MaskedStorage<Asset<T>>>>