[−][src]Struct rustc_query_system::query::QueryState
Fields
cache: Cshards: Sharded<QueryStateShard<D, Q, C::Key, C::Sharded>>cache_hits: AtomicUsizeImplementations
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]
&'tcx self,
key: &C::Key
) -> QueryLookup<'tcx, D, Q, C::Key, C::Sharded>
impl<D, Q, C> QueryState<D, Q, C> where
D: Copy + Clone + Eq + Hash,
Q: Clone,
C: QueryCache, [src]
D: Copy + Clone + Eq + Hash,
Q: Clone,
C: QueryCache,
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: D,
make_query: fn(_: C::Key) -> Q,
jobs: &mut FxHashMap<QueryJobId<D>, QueryJobInfo<D, Q>>
) -> Option<()>[src]
&self,
kind: D,
make_query: fn(_: C::Key) -> Q,
jobs: &mut FxHashMap<QueryJobId<D>, QueryJobInfo<D, Q>>
) -> Option<()>
Trait Implementations
impl<D, Q, C: QueryCache> Default for QueryState<D, Q, C>[src]
pub fn default() -> 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,
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,
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]
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,
pub 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.
pub 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>,