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: AtomicUsize

Implementations

impl<C: QueryCache> QueryCacheStore<C>[src]

pub(super) fn get_lookup<'tcx>(
    &'tcx self,
    key: &C::Key
) -> (QueryLookup, LockGuard<'tcx, C::Sharded>)
[src]

pub fn iter_results<R>(
    &self,
    f: impl for<'a> FnOnce(&'a mut dyn Iterator<Item = (&'a C::Key, &'a C::Value, DepNodeIndex)>) -> R
) -> R
[src]

Trait Implementations

impl<C: QueryCache> 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, 

impl<C> !Sync for QueryCacheStore<C>

impl<C> Unpin for QueryCacheStore<C> where
    C: Unpin,
    <C as QueryCache>::Sharded: Unpin, 

impl<C> UnwindSafe for QueryCacheStore<C> where
    C: UnwindSafe,
    <C as QueryCache>::Sharded: UnwindSafe, 

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.