pub enum CacheKey {
PredicateByName(String),
PredicatesByArity(usize),
PredicatesByDomain(String),
PredicatesBySignature(Vec<String>),
PredicatesByPattern(String),
DomainUsageCount(String),
AllDomainNames,
AllPredicateNames,
Custom(String),
}Expand description
A cache key for query results.
Variants§
PredicateByName(String)
Query by predicate name
PredicatesByArity(usize)
Query by arity
PredicatesByDomain(String)
Query by domain
PredicatesBySignature(Vec<String>)
Query by signature
PredicatesByPattern(String)
Query by pattern (wildcard matching)
DomainUsageCount(String)
Domain usage count
AllDomainNames
All domain names
AllPredicateNames
All predicate names
Custom(String)
Custom query key
Trait Implementations§
impl Eq for CacheKey
impl StructuralPartialEq for CacheKey
Auto Trait Implementations§
impl Freeze for CacheKey
impl RefUnwindSafe for CacheKey
impl Send for CacheKey
impl Sync for CacheKey
impl Unpin for CacheKey
impl UnwindSafe for CacheKey
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§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.