MCPcopy Create free account
hub / github.com/emwalker/digraph / fmt

Method fmt

backend/src/graphql/time.rs:19–26  ·  view source on GitHub ↗
(&self, f: &mut std::fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

17
18impl std::fmt::Display for TimerangePrefixFormat {
19 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::result::Result<(), std::fmt::Error> {
20 let string = match self {
21 Self::None => "NONE",
22 Self::StartYear => "START_YEAR",
23 Self::StartYearMonth => "START_YEAR_MONTH",
24 };
25 write!(f, "{string}")
26 }
27}
28
29impl From<&types::TimerangePrefixFormat> for TimerangePrefixFormat {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected