[−][src]Struct rustc_query_system::query::QueryState

pub struct QueryState<D, Q, C: QueryCache> {
    cache: C,
    shards: Sharded<QueryStateShard<D, Q, C::Key, C::Sharded>>,
    pub cache_hits: AtomicUsize,
}

Fields

cache: Cshards: Sharded<QueryStateShard<D, Q, C::Key, C::Sharded>>cache_hits: AtomicUsize

Implementations

impl<D, Q, C: QueryCache> QueryState<D, Q, C>[src]

pub(in query) fn get_lookup<'tcx>(
    &'tcx self,
    key: &C::Key
) -> QueryLookup<'tcx, D, Q, C::Key, C::Sharded>
[src]

impl<D, Q, C> QueryState<D, Q, C> where
    D: Copy + Clone + Eq + Hash,
    Q: Clone,
    C: QueryCache, 
[src]

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

pub fn all_inactive(&self) -> bool[src]

pub fn try_collect_active_jobs(
    &self,
    kind: D,
    make_query: fn(_: C::Key) -> Q,
    jobs: &mut FxHashMap<QueryJobId<D>, QueryJobInfo<D, Q>>
) -> Option<()>
[src]

Trait Implementations

impl<D, Q, C: QueryCache> Default for QueryState<D, Q, C>[src]

Auto Trait Implementations

impl<D, Q, C> !RefUnwindSafe for QueryState<D, Q, C>

impl<D, Q, C> !Send for QueryState<D, Q, C>

impl<D, Q, C> !Sync for QueryState<D, Q, C>

impl<D, Q, C> Unpin for QueryState<D, Q, C> where
    C: Unpin,
    D: Unpin,
    Q: Unpin,
    <C as QueryCache>::Key: Unpin,
    <C as QueryCache>::Sharded: Unpin, 

impl<D, Q, C> UnwindSafe for QueryState<D, Q, C> where
    C: UnwindSafe,
    D: UnwindSafe,
    Q: UnwindSafe,
    <C as QueryCache>::Key: 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.