pub struct FullCacheKey { /* private fields */ }Expand description
Full cache key that includes query type information.
This prevents collisions between different query types that might
have the same CacheKey type (e.g., both use u32).
This type is used internally for dependency tracking, but is also exposed for error reporting and future GC functionality.
Implementations§
Source§impl FullCacheKey
impl FullCacheKey
Sourcepub fn debug_repr(&self) -> &str
pub fn debug_repr(&self) -> &str
Get debug representation for error messages.
Sourcepub fn query_set_sentinel<Q: 'static>() -> Self
pub fn query_set_sentinel<Q: 'static>() -> Self
Create a sentinel key representing “all queries of type Q”.
This is used by list_queries to track dependencies on the set of queries,
rather than individual query values.
Sourcepub fn asset_key_set_sentinel<K: 'static>() -> Self
pub fn asset_key_set_sentinel<K: 'static>() -> Self
Create a sentinel key representing “all asset keys of type K”.
This is used by list_asset_keys to track dependencies on the set of asset keys,
rather than individual asset values.
Trait Implementations§
Source§impl Clone for FullCacheKey
impl Clone for FullCacheKey
Source§fn clone(&self) -> FullCacheKey
fn clone(&self) -> FullCacheKey
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 FullCacheKey
impl Debug for FullCacheKey
Source§impl Hash for FullCacheKey
impl Hash for FullCacheKey
Source§impl PartialEq for FullCacheKey
impl PartialEq for FullCacheKey
impl Eq for FullCacheKey
Auto Trait Implementations§
impl Freeze for FullCacheKey
impl RefUnwindSafe for FullCacheKey
impl Send for FullCacheKey
impl Sync for FullCacheKey
impl Unpin for FullCacheKey
impl UnwindSafe for FullCacheKey
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.