fn do_drop_dependent_vertices(
        &mut self,
        vertices: Vec<Dependency<C>>,
    ) -> (Vec<Dependency<C>>, HashSet<I>) {
        // collect the vertices that depend on the ones we got in the argument and their senders
        vertices
            .into_iter()
            // filtering by is_unit, so that we don't drop vertices depending on invalid evidence
            // or endorsements - we can still get valid ones from someone else and eventually
            // satisfy the dependency
            .filter(|dep| dep.is_unit())
            .flat_map(|vertex| self.vertices_awaiting_deps.remove(&vertex))
            .flatten()
            .map(|pv| (pv.pvv.inner().id(), pv.sender))
            .unzip()
    }
/// Drops all vertices that have the specified direct dependencies, and returns their IDs and
/// senders.
Drops all vertices that have the specified direct dependencies, and returns their IDs and
senders.
Drops all vertices that have the specified direct dependencies and returns their IDs and senders .
fn do_drop_dependent_vertices(
        &mut self,
        vertices: Vec<Dependency<C>>,
    ) -> (Vec<Dependency<C>>, HashSet<I>) {
        // collect the vertices that depend on the ones we got in the argument and their senders
        vertices
            .into_iter()
            // filtering by is_unit, so that we don't drop vertices depending on invalid evidence
            // or endorsements - we can still get valid ones from someone else and eventually
            // satisfy the dependency
            .filter(|dep| dep.is_unit())
            .flat_map(|vertex| self.vertices_awaiting_deps.remove(&vertex))
            .flatten()
            .map(|pv| (pv.pvv.inner().id(), pv.sender))
            .unzip()
    }
fn do_drop_dependent_vertices ( & mut self , vertices : Vec < Dependency < C > > , ) -> ( Vec < Dependency < C > > , HashSet < I > ) { // collect the vertices that depend on the ones we got in the argument and their senders vertices . into_iter ( ) // filtering by is_unit, so that we don't drop vertices depending on invalid evidence // or endorsements - we can still get valid ones from someone else and eventually // satisfy the dependency . filter ( | dep | dep . is_unit ( ) ) . flat_map ( | vertex | self . vertices_awaiting_deps . remove ( & vertex ) ) . flatten ( ) . map ( | pv | ( pv . pvv . inner ( ) . id ( ) , pv . sender ) ) . unzip ( ) }
Drops all vertices that have the specified direct dependencies, and returns their IDs and
senders.
Drops all vertices that have the specified direct dependencies and returns their IDs and senders .
&mut self
vertices
Vec<Dependency<C>>
&mut self
vertices
Vec<Dependency<C>>