Trait distill_loader::storage::LoaderInfoProvider [−][src]
Provides information about mappings between AssetUuid
and LoadHandle
.
Intended to be used for Handle
serde.
Required methods
fn get_load_handle(&self, asset_ref: &AssetRef) -> Option<LoadHandle>
[src]
Returns the load handle for the asset with the given UUID, if present.
This will only return Some(..)
if there has been a previous call to crate::loader::Loader::add_ref
.
Parameters
id
: UUID of the asset.
fn get_asset_id(&self, load: LoadHandle) -> Option<AssetUuid>
[src]
Returns the AssetUUID for the given LoadHandle, if present.
Parameters
load_handle
: ID allocated byLoader
to track loading of the asset.