pub struct AssetCacheKey { /* private fields */ }Expand description
Cache key for an asset.
Stores the asset key type and the key value as a type-erased Arc<dyn CacheKey>.
Implementations§
Source§impl AssetCacheKey
impl AssetCacheKey
Sourcepub fn debug_repr(&self) -> String
pub fn debug_repr(&self) -> String
Get the debug representation of this key.
Sourcepub fn asset_key_type(&self) -> TypeId
pub fn asset_key_type(&self) -> TypeId
Get the asset key type ID.
Trait Implementations§
Source§impl Clone for AssetCacheKey
impl Clone for AssetCacheKey
Source§fn clone(&self) -> AssetCacheKey
fn clone(&self) -> AssetCacheKey
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AssetCacheKey
impl Debug for AssetCacheKey
Source§impl From<AssetCacheKey> for FullCacheKey
impl From<AssetCacheKey> for FullCacheKey
Source§fn from(key: AssetCacheKey) -> Self
fn from(key: AssetCacheKey) -> Self
Converts to this type from the input type.
Source§impl Hash for AssetCacheKey
impl Hash for AssetCacheKey
Source§impl PartialEq for AssetCacheKey
impl PartialEq for AssetCacheKey
impl Eq for AssetCacheKey
Auto Trait Implementations§
impl Freeze for AssetCacheKey
impl !RefUnwindSafe for AssetCacheKey
impl Send for AssetCacheKey
impl Sync for AssetCacheKey
impl Unpin for AssetCacheKey
impl !UnwindSafe for AssetCacheKey
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.