MCPcopy Index your code
hub / github.com/endbasic/endbasic / insert

Method insert

std/src/help.rs:313–316  ·  view source on GitHub ↗
(topics: &mut Trie<String, Box<dyn Topic>>, topic: Box<dyn Topic>)

Source from the content-addressed store, hash-verified

311 /// Builds an index of the given `callables` and returns a new collection of help topics.
312 fn new(callables: &HashMap<SymbolKey, Rc<CallableMetadata>>) -> Self {
313 fn insert(topics: &mut Trie<String, Box<dyn Topic>>, topic: Box<dyn Topic>) {
314 let key = topic.name().to_ascii_uppercase();
315 topics.insert(key, topic);
316 }
317
318 let mut topics = Trie::default();
319

Callers 3

callables_to_indexFunction · 0.45
newMethod · 0.45
tester_withFunction · 0.45

Calls 1

nameMethod · 0.45

Tested by

no test coverage detected