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>;
fn describe(tcx: CTX, key: Self::Key) -> String;
fn query_state<'a>(tcx: CTX) -> &'a QueryState<Self::Key>
where
CTX: 'a;
fn query_cache<'a>(tcx: CTX) -> &'a 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;
fn execute_query(tcx: CTX::DepContext, k: Self::Key) -> Self::Stored;
}
Required Associated Types
Required Methods
sourcefn query_state<'a>(tcx: CTX) -> &'a QueryState<Self::Key>where
fn query_state<'a>(tcx: CTX) -> &'a QueryState<Self::Key>where
CTX: 'a,
sourcefn query_cache<'a>(tcx: CTX) -> &'a Self::Cachewhere
fn query_cache<'a>(tcx: CTX) -> &'a Self::Cachewhere
CTX: 'a,
sourcefn make_vtable(
fn make_vtable(
tcx: CTX,
key: &Self::Key
) -> QueryVTable<CTX, Self::Key, Self::Value>
source
fn cache_on_disk(tcx: CTX::DepContext, key: &Self::Key) -> bool
source