MCPcopy Index your code
hub / github.com/emwalker/digraph / prefix

Method prefix

backend/src/types.rs:446–452  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

444 }
445
446 pub fn prefix(&self) -> Option<String> {
447 match self {
448 Self::None(_) => None,
449 Self::StartYear(ts) => Some(ts.display_string("%Y")),
450 Self::StartYearMonth(ts) => Some(ts.display_string("%Y-%m")),
451 }
452 }
453
454 pub fn format(&self, name: &str) -> String {
455 match self.prefix() {

Callers 1

formatMethod · 0.45

Calls 1

display_stringMethod · 0.80

Tested by

no test coverage detected