MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / strings

Method strings

src/accounting/classifier.rs:33–49  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

31
32impl TaskCategory {
33 fn strings(self) -> (&'static str, &'static str) {
34 match self {
35 Self::Coding => ("coding", "Coding"),
36 Self::Debugging => ("debugging", "Debugging"),
37 Self::FeatureDev => ("feature_dev", "Feature Dev"),
38 Self::Refactoring => ("refactoring", "Refactoring"),
39 Self::Testing => ("testing", "Testing"),
40 Self::Exploration => ("exploration", "Exploration"),
41 Self::Planning => ("planning", "Planning"),
42 Self::Delegation => ("delegation", "Delegation"),
43 Self::GitOps => ("git_ops", "Git Ops"),
44 Self::BuildDeploy => ("build_deploy", "Build/Deploy"),
45 Self::Brainstorming => ("brainstorming", "Brainstorming"),
46 Self::Conversation => ("conversation", "Conversation"),
47 Self::General => ("general", "General"),
48 }
49 }
50
51 pub fn as_str(&self) -> &'static str {
52 (*self).strings().0

Callers 2

as_strMethod · 0.80
labelMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected