Function blart::deallocate_tree

source ·
pub unsafe fn deallocate_tree<K, V>(root: OpaqueNodePtr<K, V>)
Expand description

Deallocate the given node and all children of the given node.

This will also deallocate the leaf nodes with their value type data.

Safety

  • This function must only be called once for this root node and all descendants, otherwise a double-free could result.