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

Method copy_entry

src/tree/binary/node.rs:192–199  ·  view source on GitHub ↗
(&mut self, src: NonNull<Node<K, V>>)

Source from the content-addressed store, hash-verified

190 }
191
192 pub fn copy_entry(&mut self, src: NonNull<Node<K, V>>) {
193 if let Some(mut node) = self.node {
194 unsafe {
195 ptr::copy_nonoverlapping(&src.as_ref().key, &mut node.as_mut().key, 1);
196 ptr::copy_nonoverlapping(&src.as_ref().val, &mut node.as_mut().val, 1);
197 }
198 }
199 }
200
201 pub fn flip_color(&mut self) {
202 if let Some(mut node) = self.node {

Callers 2

deleteFunction · 0.80
deleteFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected