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

Method clear

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

Clear the graph, removing all vertices and children. This does not deallocate the underlying storage.

(&mut self)

Source from the content-addressed store, hash-verified

402 ///
403 /// This does not deallocate the underlying storage.
404 pub fn clear(&mut self) {
405 self.vertices.clear();
406 self.children.clear();
407 self.total_bytes = 0;
408 }
409
410 /// Reset all traversal state (visited, on_stack, etc.) on vertices.
411 ///

Callers

nothing calls this directly

Calls 1

clearMethod · 0.65

Tested by

no test coverage detected