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

Method fmt

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

Source from the content-addressed store, hash-verified

32
33impl std::fmt::Display for LogFormat {
34 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
35 match self {
36 LogFormat::Default => write!(f, "default"),
37 LogFormat::Short => write!(f, "short"),
38 LogFormat::Oneline => write!(f, "oneline"),
39 LogFormat::Json => write!(f, "json"),
40 }
41 }
42}
43
44impl std::str::FromStr for LogFormat {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected