MCPcopy Create free account
hub / github.com/douchuan/algorithm / keys

Method keys

src/strings/tst.rs:32–39  ·  view source on GitHub ↗

Returns all keys in the symbol table as an Queue.

(&self)

Source from the content-addressed store, hash-verified

30
31 /// Returns all keys in the symbol table as an Queue.
32 pub fn keys(&self) -> Queue<String> {
33 let mut queue = Queue::default();
34 let mut prefix = String::new();
35 unsafe {
36 collect_prefix(self.root, &mut prefix, &mut queue);
37 }
38 queue
39 }
40
41 /// Returns the value associated with the given key.
42 pub fn get(&self, key: &str) -> Option<&T> {

Callers 9

newMethod · 0.45
dotMethod · 0.45
scaleMethod · 0.45
addMethod · 0.45
subMethod · 0.45
to_stringMethod · 0.45
cloneMethod · 0.45
trie_stFunction · 0.45
tstFunction · 0.45

Calls 1

collect_prefixFunction · 0.70

Tested by 2

trie_stFunction · 0.36
tstFunction · 0.36