MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / as_str

Method as_str

atomic-semantic/src/entity.rs:38–52  ·  view source on GitHub ↗

Convert to string representation for storage

(&self)

Source from the content-addressed store, hash-verified

36impl EntityKind {
37 /// Convert to string representation for storage
38 pub fn as_str(&self) -> &'static str {
39 match self {
40 EntityKind::Function => "function",
41 EntityKind::Method => "method",
42 EntityKind::Class => "class",
43 EntityKind::Interface => "interface",
44 EntityKind::TypeAlias => "type_alias",
45 EntityKind::Const => "const",
46 EntityKind::Variable => "variable",
47 EntityKind::Enum => "enum",
48 EntityKind::Module => "module",
49 EntityKind::Import => "import",
50 EntityKind::Export => "export",
51 }
52 }
53}
54
55impl std::str::FromStr for EntityKind {

Callers 11

is_exportedMethod · 0.45
test_realistic_swift_appFunction · 0.45
extract_functionMethod · 0.45
test_multiple_entitiesFunction · 0.45
test_realistic_flask_appFunction · 0.45
test_realistic_go_serverFunction · 0.45

Calls

no outgoing calls