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

Method fmt

atomic-cli/src/output/colors.rs:67–73  ·  view source on GitHub ↗
(&self, f: &mut std::fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

65
66impl std::fmt::Display for ColorMode {
67 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
68 match self {
69 Self::Auto => write!(f, "auto"),
70 Self::Always => write!(f, "always"),
71 Self::Never => write!(f, "never"),
72 }
73 }
74}
75
76impl std::str::FromStr for ColorMode {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected