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

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

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

    pub fn query_state<'a>(
        tcx: CTX
    ) -> &'a QueryState<CTX::DepKind, CTX::Query, Self::Cache>;
pub fn compute(tcx: CTX, key: Self::Key) -> Self::Value;
pub fn hash_result(
        hcx: &mut CTX::StableHashingContext,
        result: &Self::Value
    ) -> Option<Fingerprint>;
pub fn handle_cycle_error(
        tcx: CTX,
        error: CycleError<CTX::Query>
    ) -> Self::Value; pub fn to_dep_node(tcx: CTX, key: &Self::Key) -> DepNode<CTX::DepKind>
    where
        Self::Key: DepNodeParams<CTX>
, { ... } }

Associated Types

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

Loading content...

Associated Constants

pub const ANON: bool[src]

pub const EVAL_ALWAYS: bool[src]

pub const DEP_KIND: CTX::DepKind[src]

Loading content...

Required methods

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

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

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

pub fn handle_cycle_error(
    tcx: CTX,
    error: CycleError<CTX::Query>
) -> Self::Value
[src]

Loading content...

Provided methods

pub fn to_dep_node(tcx: CTX, key: &Self::Key) -> DepNode<CTX::DepKind> where
    Self::Key: DepNodeParams<CTX>, 
[src]

Loading content...

Implementors

Loading content...