Trait rustc_query_impl::QueryDescription [−][src]
pub trait QueryDescription<CTX>: QueryConfig where
CTX: QueryContext, {
type Cache: QueryCache;
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 as HasDepContext>::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 as HasDepContext>::DepContext,
key: &Self::Key
) -> bool;
}