Trait rustc_query_system::dep_graph::DepKind
source · [−]pub trait DepKind: Copy + Debug + Eq + Hash + Send + Encodable<FileEncoder> + 'static {
const NULL: Self;
const RED: Self;
fn debug_node(node: &DepNode<Self>, f: &mut Formatter<'_>) -> Result;
fn with_deps<OP, R>(deps: TaskDepsRef<'_, Self>, op: OP) -> R
where
OP: FnOnce() -> R;
fn read_deps<OP>(op: OP)
where
OP: for<'a> FnOnce(TaskDepsRef<'a, Self>);
}
Expand description
Describe the different families of dependency nodes.
Required Associated Constants
Required Methods
sourcefn debug_node(node: &DepNode<Self>, f: &mut Formatter<'_>) -> Result
fn debug_node(node: &DepNode<Self>, f: &mut Formatter<'_>) -> Result
Implementation of std::fmt::Debug
for DepNode
.
sourcefn with_deps<OP, R>(deps: TaskDepsRef<'_, Self>, op: OP) -> Rwhere
OP: FnOnce() -> R,
fn with_deps<OP, R>(deps: TaskDepsRef<'_, Self>, op: OP) -> Rwhere
OP: FnOnce() -> R,
Execute the operation with provided dependencies.
sourcefn read_deps<OP>(op: OP)where
OP: for<'a> FnOnce(TaskDepsRef<'a, Self>),
fn read_deps<OP>(op: OP)where
OP: for<'a> FnOnce(TaskDepsRef<'a, Self>),
Access dependencies from current implicit context.