MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / fmt

Method fmt

crates/openshell-tui/src/theme.rs:17–23  ·  view source on GitHub ↗
(&self, f: &mut std::fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

15
16impl std::fmt::Display for ThemeMode {
17 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
18 match self {
19 Self::Auto => write!(f, "auto"),
20 Self::Dark => write!(f, "dark"),
21 Self::Light => write!(f, "light"),
22 }
23 }
24}
25
26impl std::str::FromStr for ThemeMode {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected