Trait rustc_query_system::query::config::QueryDescription
source · [−]pub trait QueryDescription<CTX: QueryContext>: QueryConfig {
type Cache: QueryCache<Key = Self::Key, Stored = Self::Stored, Value = Self::Value>;
const TRY_LOAD_FROM_DISK: Option<fn(_: CTX, _: SerializedDepNodeIndex) -> Option<Self::Value>>;
fn describe(tcx: CTX, key: Self::Key) -> String;
fn query_state<'a>(tcx: CTX) -> &'a QueryState<CTX::DepKind, Self::Key>
where
CTX: 'a;
fn query_cache<'a>(tcx: CTX) -> &'a QueryCacheStore<Self::Cache>
where
CTX: 'a;
fn make_vtable(
tcx: CTX,
key: &Self::Key
) -> QueryVtable<CTX, Self::Key, Self::Value>;
fn cache_on_disk(tcx: CTX::DepContext, key: &Self::Key) -> bool;
}