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

Method release

src/tree/binary/node.rs:63–67  ·  view source on GitHub ↗
(node: NonNull<Node<K, V>>)

Source from the content-addressed store, hash-verified

61 }
62
63 pub fn release(node: NonNull<Node<K, V>>) {
64 unsafe {
65 let _ = Box::from_raw(node.as_ptr());
66 }
67 }
68
69 /// 直接子节点个数,不包括孙子...
70 pub fn children_count(node: NonNull<Self>) -> usize {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected