pub struct QueryCacheKey { /* private fields */ }Expand description
Cache key for a query.
Stores the query type and the query value as a type-erased Arc<dyn CacheKey>.
Implementations§
Source§impl QueryCacheKey
impl QueryCacheKey
Sourcepub fn debug_repr(&self) -> String
pub fn debug_repr(&self) -> String
Get the debug representation of this key.
Sourcepub fn query_type(&self) -> TypeId
pub fn query_type(&self) -> TypeId
Get the query type ID.
Trait Implementations§
Source§impl Clone for QueryCacheKey
impl Clone for QueryCacheKey
Source§fn clone(&self) -> QueryCacheKey
fn clone(&self) -> QueryCacheKey
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 QueryCacheKey
impl Debug for QueryCacheKey
Source§impl From<QueryCacheKey> for FullCacheKey
impl From<QueryCacheKey> for FullCacheKey
Source§fn from(key: QueryCacheKey) -> Self
fn from(key: QueryCacheKey) -> Self
Converts to this type from the input type.
Source§impl Hash for QueryCacheKey
impl Hash for QueryCacheKey
Source§impl PartialEq for QueryCacheKey
impl PartialEq for QueryCacheKey
impl Eq for QueryCacheKey
Auto Trait Implementations§
impl Freeze for QueryCacheKey
impl !RefUnwindSafe for QueryCacheKey
impl Send for QueryCacheKey
impl Sync for QueryCacheKey
impl Unpin for QueryCacheKey
impl !UnwindSafe for QueryCacheKey
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.