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

Returns Some(&T) given the asset ID, returns None if the asset does not exist.

Implementors