MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / iter_vertices_mut

Method iter_vertices_mut

atomic-core/src/output/alive/graph.rs:348–353  ·  view source on GitHub ↗

Iterate over all vertices mutably.

(&mut self)

Source from the content-addressed store, hash-verified

346
347 /// Iterate over all vertices mutably.
348 pub fn iter_vertices_mut(&mut self) -> impl Iterator<Item = (VertexId, &mut AliveVertex)> {
349 self.vertices
350 .iter_mut()
351 .enumerate()
352 .map(|(i, v)| (VertexId::new(i), v))
353 }
354
355 /// Get statistics about this graph.
356 pub fn stats(&self) -> GraphStats {

Callers 1

Calls 1

iter_mutMethod · 0.80

Tested by 1