[−][src]Struct rustc_query_system::query::plumbing::QueryState
Fields
cache: Cshards: Sharded<QueryStateShard<CTX, C::Key, C::Sharded>>cache_hits: AtomicUsizeImplementations
impl<CTX: QueryContext, C: QueryCache> QueryState<CTX, C>[src]
pub(super) fn get_lookup<'tcx>(
&'tcx self,
key: &C::Key
) -> QueryLookup<'tcx, CTX, C::Key, C::Sharded>[src]
&'tcx self,
key: &C::Key
) -> QueryLookup<'tcx, CTX, C::Key, C::Sharded>
impl<CTX: QueryContext, C: QueryCache> QueryState<CTX, C>[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]
&self,
f: impl for<'a> FnOnce(Box<dyn Iterator<Item = (&'a C::Key, &'a C::Value, DepNodeIndex)> + 'a>) -> R
) -> R
pub fn all_inactive(&self) -> bool[src]
pub fn try_collect_active_jobs(
&self,
kind: CTX::DepKind,
make_query: fn(_: C::Key) -> CTX::Query,
jobs: &mut FxHashMap<QueryJobId<CTX::DepKind>, QueryJobInfo<CTX>>
) -> Option<()> where
C::Key: Clone, [src]
&self,
kind: CTX::DepKind,
make_query: fn(_: C::Key) -> CTX::Query,
jobs: &mut FxHashMap<QueryJobId<CTX::DepKind>, QueryJobInfo<CTX>>
) -> Option<()> where
C::Key: Clone,
Trait Implementations
impl<CTX: QueryContext, C: QueryCache> Default for QueryState<CTX, C>[src]
fn default() -> QueryState<CTX, C>[src]
Auto Trait Implementations
impl<CTX, C> !RefUnwindSafe for QueryState<CTX, C>
impl<CTX, C> !Send for QueryState<CTX, C>
impl<CTX, C> !Sync for QueryState<CTX, C>
impl<CTX, C> Unpin for QueryState<CTX, C> where
C: Unpin,
CTX: Unpin,
<CTX as DepContext>::DepKind: Unpin,
<C as QueryCache>::Key: Unpin,
<C as QueryCache>::Sharded: Unpin,
C: Unpin,
CTX: Unpin,
<CTX as DepContext>::DepKind: Unpin,
<C as QueryCache>::Key: Unpin,
<C as QueryCache>::Sharded: Unpin,
impl<CTX, C> UnwindSafe for QueryState<CTX, C> where
C: UnwindSafe,
CTX: UnwindSafe,
<CTX as DepContext>::DepKind: UnwindSafe,
<C as QueryCache>::Key: UnwindSafe,
<C as QueryCache>::Sharded: UnwindSafe,
C: UnwindSafe,
CTX: UnwindSafe,
<CTX as DepContext>::DepKind: UnwindSafe,
<C as QueryCache>::Key: UnwindSafe,
<C as QueryCache>::Sharded: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,