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

Method fmt

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

Source from the content-addressed store, hash-verified

461
462impl fmt::Display for ProvenanceGraph {
463 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
464 writeln!(
465 f,
466 "ProvenanceGraph — {} · {} nodes · {} edges · {} changes",
467 self.agent_display_name,
468 self.node_count(),
469 self.edge_count(),
470 self.change_count(),
471 )?;
472
473 let goals = self.nodes_of_kind(ProvenanceNodeKind::Goal);
474 for goal in &goals {
475 writeln!(f, " Goal: {}", goal.summary)?;
476 }
477
478 writeln!(f, " {}", self.stats)?;
479 Ok(())
480 }
481}

Callers

nothing calls this directly

Calls 1

nodes_of_kindMethod · 0.80

Tested by

no test coverage detected