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

Method set_entry

src/tree/binary/node.rs:177–184  ·  view source on GitHub ↗
(&mut self, (key, val): (K, Option<V>))

Source from the content-addressed store, hash-verified

175 }
176
177 pub fn set_entry(&mut self, (key, val): (K, Option<V>)) {
178 if let Some(mut node) = self.node {
179 unsafe {
180 node.as_mut().key = key;
181 node.as_mut().val = val;
182 }
183 }
184 }
185
186 pub fn set_color(&mut self, v: Color) {
187 if let Some(mut node) = self.node {

Callers 4

insertFunction · 0.80
putFunction · 0.80
replace_max_by_minFunction · 0.80
setup_new_maxFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected