Trait rustc_query_system::dep_graph::DepKind[−][src]

pub trait DepKind: Copy + Debug + Eq + Hash {
    const NULL: Self;

    fn is_eval_always(&self) -> bool;
fn has_params(&self) -> bool;
fn debug_node(node: &DepNode<Self>, f: &mut Formatter<'_>) -> Result;
fn with_deps<OP, R>(deps: Option<&Lock<TaskDeps<Self>>>, op: OP) -> R
    where
        OP: FnOnce() -> R
;
fn read_deps<OP>(op: OP)
    where
        OP: for<'a> FnOnce(Option<&'a Lock<TaskDeps<Self>>>)
;
fn can_reconstruct_query_key(&self) -> bool; }

Describe the different families of dependency nodes.

Associated Constants

const NULL: Self[src]

Loading content...

Required methods

fn is_eval_always(&self) -> bool[src]

Return whether this kind always require evaluation.

fn has_params(&self) -> bool[src]

Return whether this kind requires additional parameters to be executed.

fn debug_node(node: &DepNode<Self>, f: &mut Formatter<'_>) -> Result[src]

Implementation of std::fmt::Debug for DepNode.

fn with_deps<OP, R>(deps: Option<&Lock<TaskDeps<Self>>>, op: OP) -> R where
    OP: FnOnce() -> R, 
[src]

Execute the operation with provided dependencies.

fn read_deps<OP>(op: OP) where
    OP: for<'a> FnOnce(Option<&'a Lock<TaskDeps<Self>>>), 
[src]

Access dependencies from current implicit context.

fn can_reconstruct_query_key(&self) -> bool[src]

Loading content...

Implementors

Loading content...