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

Method fmt

atomic-repository/src/diff_engine.rs:57–64  ·  view source on GitHub ↗
(&self, f: &mut fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

55
56impl fmt::Display for DiffFormat {
57 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
58 match self {
59 DiffFormat::Unified => write!(f, "unified"),
60 DiffFormat::Stat => write!(f, "stat"),
61 DiffFormat::NameOnly => write!(f, "name-only"),
62 DiffFormat::NameStatus => write!(f, "name-status"),
63 }
64 }
65}
66
67impl FromStr for DiffFormat {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected