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

Method as_str

src/memory/types.rs:19–28  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

17
18impl MemoryCategory {
19 pub const fn as_str(self) -> &'static str {
20 match self {
21 Self::General => "general",
22 Self::UserPref => "user_pref",
23 Self::Project => "project",
24 Self::Tool => "tool",
25 Self::Decision => "decision",
26 Self::CodeArea => "code_area",
27 }
28 }
29
30 pub fn from_proposal_label(value: &str) -> Result<Self, ParseMemoryCategoryError> {
31 if let Ok(category) = value.parse::<Self>() {

Callers 15

parent_node_idMethod · 0.45
parent_node_idMethod · 0.45
parent_node_idMethod · 0.45
parent_node_idMethod · 0.45
parent_node_idMethod · 0.45
parent_node_idMethod · 0.45
parse_lineMethod · 0.45
parent_node_idMethod · 0.45
parent_node_idMethod · 0.45
parent_node_idMethod · 0.45
parent_node_idMethod · 0.45

Calls

no outgoing calls