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

Method delete

src/strings/tries.rs:99–103  ·  view source on GitHub ↗

Removes the key from the set if the key is present

(&mut self, key: &str)

Source from the content-addressed store, hash-verified

97
98 /// Removes the key from the set if the key is present
99 pub fn delete(&mut self, key: &str) {
100 let mut root = self.root;
101 root = unsafe { self.delete_dth(root, key, 0) };
102 self.root = root;
103 }
104
105 /// Returns all keys in the symbol table
106 pub fn keys(&self) -> Queue<String> {

Callers 9

putMethod · 0.45
putMethod · 0.45
deleteFunction · 0.45
drop_with_deleteFunction · 0.45
drop_with_deleteFunction · 0.45
trie_stFunction · 0.45
trie_st_drop_with_deleteFunction · 0.45

Calls 1

delete_dthMethod · 0.80

Tested by 7

deleteFunction · 0.36
drop_with_deleteFunction · 0.36
drop_with_deleteFunction · 0.36
trie_stFunction · 0.36
trie_st_drop_with_deleteFunction · 0.36