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

Method fmt

atomic-core/src/change/provenance_graph/mod.rs:429–446  ·  view source on GitHub ↗
(&self, f: &mut fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

427
428impl fmt::Display for ProvenanceGraph {
429 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
430 writeln!(
431 f,
432 "ProvenanceGraph — {} · {} nodes · {} edges · {} changes",
433 self.agent_display_name,
434 self.node_count(),
435 self.edge_count(),
436 self.change_count(),
437 )?;
438
439 let goals = self.nodes_of_kind(ProvenanceNodeKind::Goal);
440 for goal in &goals {
441 writeln!(f, " Goal: {}", goal.summary)?;
442 }
443
444 writeln!(f, " {}", self.stats)?;
445 Ok(())
446 }
447}

Callers

nothing calls this directly

Calls 1

nodes_of_kindMethod · 0.80

Tested by

no test coverage detected