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<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; }

Required Associated Types

Required Associated Constants

Required Methods

Implementors