pub trait QueryConfig<Qcx: QueryContext> {
type Key: DepNodeParams<Qcx::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::DepKind;
const HANDLE_CYCLE_ERROR: HandleCycleError;
const HASH_RESULT: HashResult<Qcx, Self>;
fn query_state<'a>(tcx: Qcx) -> &'a QueryState<Self::Key, Qcx::DepKind>
where
Qcx: 'a;
fn query_cache<'a>(tcx: Qcx) -> &'a Self::Cache
where
Qcx: 'a;
fn cache_on_disk(tcx: Qcx::DepContext, key: &Self::Key) -> bool;
fn execute_query(tcx: Qcx::DepContext, k: Self::Key) -> Self::Stored;
fn compute(
tcx: Qcx,
key: &Self::Key
) -> fn(_: Qcx::DepContext, _: Self::Key) -> Self::Value;
fn try_load_from_disk(
qcx: Qcx,
idx: &Self::Key
) -> TryLoadFromDisk<Qcx, Self>;
fn construct_dep_node(
tcx: Qcx::DepContext,
key: &Self::Key
) -> DepNode<Qcx::DepKind> { ... }
}