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

Method iter_vertices_mut

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

Iterate over all vertices mutably.

(&mut self)

Source from the content-addressed store, hash-verified

369
370 /// Iterate over all vertices mutably.
371 pub fn iter_vertices_mut(&mut self) -> impl Iterator<Item = (VertexId, &mut AliveVertex)> {
372 self.vertices
373 .iter_mut()
374 .enumerate()
375 .map(|(i, v)| (VertexId::new(i), v))
376 }
377
378 /// Get statistics about this graph.
379 pub fn stats(&self) -> GraphStats {

Callers 1

Calls 1

iter_mutMethod · 0.80

Tested by 1