Struct rustc_query_system::query::QueryCacheStore [−][src]
pub struct QueryCacheStore<C: QueryCache> { cache: C, shards: Sharded<C::Sharded>, pub cache_hits: AtomicUsize, }
Fields
cache: Cshards: Sharded<C::Sharded>cache_hits: AtomicUsizeImplementations
impl<C: QueryCache> QueryCacheStore<C>[src]
impl<C: QueryCache> QueryCacheStore<C>[src]pub(super) fn get_lookup<'tcx>(
&'tcx self,
key: &C::Key
) -> (QueryLookup, LockGuard<'tcx, C::Sharded>)[src]
&'tcx self,
key: &C::Key
) -> (QueryLookup, LockGuard<'tcx, C::Sharded>)
pub fn iter_results(&self, f: &mut dyn FnMut(&C::Key, &C::Value, DepNodeIndex))[src]
Trait Implementations
impl<C: QueryCache + Default> Default for QueryCacheStore<C>[src]
impl<C: QueryCache + Default> Default for QueryCacheStore<C>[src]Auto Trait Implementations
impl<C> !RefUnwindSafe for QueryCacheStore<C>
impl<C> Send for QueryCacheStore<C> where
C: Send,
<C as QueryCache>::Sharded: Send,
C: Send,
<C as QueryCache>::Sharded: Send,
impl<C> !Sync for QueryCacheStore<C>
impl<C> Unpin for QueryCacheStore<C> where
C: Unpin,
<C as QueryCache>::Sharded: Unpin,
C: Unpin,
<C as QueryCache>::Sharded: Unpin,
impl<C> UnwindSafe for QueryCacheStore<C> where
C: UnwindSafe,
<C as QueryCache>::Sharded: UnwindSafe,
C: UnwindSafe,
<C as QueryCache>::Sharded: UnwindSafe,