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

Method fmt

atomic-cli/src/commands/diff/types.rs:34–41  ·  view source on GitHub ↗
(&self, f: &mut fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

32
33impl fmt::Display for DiffFormat {
34 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
35 match self {
36 DiffFormat::Unified => write!(f, "unified"),
37 DiffFormat::Stat => write!(f, "stat"),
38 DiffFormat::NameOnly => write!(f, "name-only"),
39 DiffFormat::NameStatus => write!(f, "name-status"),
40 }
41 }
42}
43
44impl FromStr for DiffFormat {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected