pub struct ResourceMapping<R, V = ()> { /* private fields */ }Implementations§
source§impl<R, V> ResourceMapping<R, V>
impl<R, V> ResourceMapping<R, V>
pub fn has_asset(&self, asset_id: AssetId) -> bool
pub fn has_name(&self, name: &str) -> bool
pub fn maintain(&mut self)
pub fn map_asset_entry( &mut self, name: impl ToString, asset_id: AssetId, entry: ResourceMappingEntry<R, V> )
pub fn map_asset_resource( &mut self, name: impl ToString, asset_id: AssetId, resource_id: ID<R> )
pub fn map_asset_virtual_resource( &mut self, name: impl ToString, asset_id: AssetId, virtual_resource_id: ID<V>, resource_id: ID<R> )
pub fn map_entry( &mut self, name: impl ToString, entry: ResourceMappingEntry<R, V> )
pub fn map_resource(&mut self, name: impl ToString, resource_id: ID<R>)
pub fn map_virtual_resource( &mut self, name: impl ToString, virtual_resource_id: ID<V>, resource_id: ID<R> )
pub fn unmap_asset( &mut self, asset_id: AssetId ) -> Option<ResourceMappingEntry<R, V>>
pub fn unmap_asset_resource(&mut self, asset_id: AssetId) -> Option<ID<R>>
pub fn unmap_asset_virtual_resource( &mut self, asset_id: AssetId ) -> Option<(ID<V>, ID<R>)>
pub fn unmap_name(&mut self, name: &str) -> Option<ResourceMappingEntry<R, V>>
pub fn unmap_name_resource(&mut self, name: &str) -> Option<ID<R>>
pub fn unmap_name_virtual_resource( &mut self, name: &str ) -> Option<(ID<V>, ID<R>)>
pub fn entry_by_name(&self, name: &str) -> Option<&ResourceMappingEntry<R, V>>
pub fn resource_by_name(&self, name: &str) -> Option<ID<R>>
pub fn virtual_resource_by_name(&self, name: &str) -> Option<(ID<V>, ID<R>)>
pub fn entry_by_asset( &self, asset_id: AssetId ) -> Option<&ResourceMappingEntry<R, V>>
pub fn resource_by_asset(&self, asset_id: AssetId) -> Option<ID<R>>
pub fn virtual_resource_by_asset( &self, asset_id: AssetId ) -> Option<(ID<V>, ID<R>)>
pub fn entries( &self ) -> impl Iterator<Item = (&str, &ResourceMappingEntry<R, V>)>
pub fn resources(&self) -> impl Iterator<Item = (&str, ID<R>)>
pub fn virtual_resources(&self) -> impl Iterator<Item = (&str, ID<V>, ID<R>)>
pub fn entries_added( &self ) -> impl Iterator<Item = (&str, &ResourceMappingEntry<R, V>)>
pub fn resources_added(&self) -> impl Iterator<Item = (&str, ID<R>)>
pub fn virtual_resources_added( &self ) -> impl Iterator<Item = (&str, ID<V>, ID<R>)>
pub fn removed(&self) -> impl Iterator<Item = &str>
Trait Implementations§
Auto Trait Implementations§
impl<R, V> RefUnwindSafe for ResourceMapping<R, V>
impl<R, V> Send for ResourceMapping<R, V>
impl<R, V> Sync for ResourceMapping<R, V>
impl<R, V> Unpin for ResourceMapping<R, V>
impl<R, V> UnwindSafe for ResourceMapping<R, V>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Initialize for Twhere
T: Default,
impl<T> Initialize for Twhere T: Default,
fn initialize(&mut self)
§unsafe fn initialize_raw(data: *mut ())
unsafe fn initialize_raw(data: *mut ())
Safety Read more