/// Extend a collection of edges by adding all edges from the given
/// dependency graph.
Extend a collection of edges by adding all edges from the given
dependency graph.
Extend a collection of edges by adding all edges from the given dependency graph .
fn extend_edges_from_dep_graph(all_edges: &Edges, graph: &DepGraph<'_>) {
    let all_hashes = graph.all_hashes();
    all_hashes.par_iter().for_each(|dependency| {
        let dependency = Dep::new(*dependency);
        if let Some(hash_list) = graph.hash_list_for(dependency) {
            for dependent in graph.hash_list_hashes(hash_list) {
                all_edges.register(dependent.into(), dependency.into());
            }
        }
    });
}
fn extend_edges_from_dep_graph ( all_edges : & Edges , graph : & DepGraph < ' _ > ) { let all_hashes = graph . all_hashes ( ) ; all_hashes . par_iter ( ) . for_each ( | dependency | { let dependency = Dep :: new ( * dependency ) ; if let Some ( hash_list ) = graph . hash_list_for ( dependency ) { for dependent in graph . hash_list_hashes ( hash_list ) { all_edges . register ( dependent . into ( ) , dependency . into ( ) ) ; } } } ) ; }
Extend a collection of edges by adding all edges from the given
dependency graph.
Extend a collection of edges by adding all edges from the given dependency graph .
all_edges
&Edges
graph
&DepGraph<'_>