pub trait QueryConfig<Qcx>where
Qcx: QueryContext,{
type Key: DepNodeParams<<Qcx as HasDepContext>::DepContext> + Eq + Hash + Clone + Debug;
type Value: Debug;
type Stored: Debug + Clone + Borrow<Self::Value>;
type Cache: QueryCache<Key = Self::Key, Stored = Self::Stored, Value = Self::Value>;
const NAME: &'static str;
const ANON: bool;
const EVAL_ALWAYS: bool;
const DEPTH_LIMIT: bool;
const FEEDABLE: bool;
const DEP_KIND: <Qcx as HasDepContext>::DepKind;
const HANDLE_CYCLE_ERROR: HandleCycleError;
const HASH_RESULT: Option<fn(_: &mut StableHashingContext<'_>, _: &Self::Value) -> Fingerprint>;
fn query_state<'a>(
tcx: Qcx
) -> &'a QueryState<Self::Key, <Qcx as HasDepContext>::DepKind>
where
Qcx: 'a;
fn query_cache<'a>(tcx: Qcx) -> &'a Self::Cache
where
Qcx: 'a;
fn cache_on_disk(
tcx: <Qcx as HasDepContext>::DepContext,
key: &Self::Key
) -> bool;
fn execute_query(
tcx: <Qcx as HasDepContext>::DepContext,
k: Self::Key
) -> Self::Stored;
fn compute(
tcx: Qcx,
key: &Self::Key
) -> fn(_: <Qcx as HasDepContext>::DepContext, _: Self::Key) -> Self::Value;
fn try_load_from_disk(
qcx: Qcx,
idx: &Self::Key
) -> Option<fn(_: Qcx, _: SerializedDepNodeIndex) -> Option<Self::Value>>;
fn construct_dep_node(
tcx: <Qcx as HasDepContext>::DepContext,
key: &Self::Key
) -> DepNode<<Qcx as HasDepContext>::DepKind> { ... }
}