Trait rustc_query_system::query::config::QueryAccessors[−][src]

pub trait QueryAccessors<CTX: QueryContext>: QueryConfig {
    type Cache: QueryCache<Key = Self::Key, Stored = Self::Stored, Value = Self::Value>;

    const ANON: bool;
    const EVAL_ALWAYS: bool;
    const DEP_KIND: CTX::DepKind;

    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 compute(tcx: CTX, key: Self::Key) -> Self::Value;
fn hash_result(
        hcx: &mut CTX::StableHashingContext,
        result: &Self::Value
    ) -> Option<Fingerprint>;
fn handle_cycle_error(tcx: CTX, diag: DiagnosticBuilder<'_>) -> Self::Value; }

Associated Types

type Cache: QueryCache<Key = Self::Key, Stored = Self::Stored, Value = Self::Value>[src]

Loading content...

Associated Constants

const ANON: bool[src]

const EVAL_ALWAYS: bool[src]

const DEP_KIND: CTX::DepKind[src]

Loading content...

Required methods

fn query_state<'a>(tcx: CTX) -> &'a QueryState<CTX::DepKind, Self::Key> where
    CTX: 'a, 
[src]

fn query_cache<'a>(tcx: CTX) -> &'a QueryCacheStore<Self::Cache> where
    CTX: 'a, 
[src]

fn compute(tcx: CTX, key: Self::Key) -> Self::Value[src]

fn hash_result(
    hcx: &mut CTX::StableHashingContext,
    result: &Self::Value
) -> Option<Fingerprint>
[src]

fn handle_cycle_error(tcx: CTX, diag: DiagnosticBuilder<'_>) -> Self::Value[src]

Loading content...

Implementors

Loading content...