pub unsafe fn deallocate_leaves<K, V, const PREFIX_LEN: usize, A: Allocator>(
leaf_range: RawIterator<K, V, PREFIX_LEN>,
alloc: &A,
)
Expand description
Deallocate all the leaf nodes in the linked list starting that are within the given iterator.
ยงSafety
- This function must only be called once for this
start
node and all following leaf nodes in the linked list, otherwise a double-free could result. - This function should not be called concurrently with any read of the tree, otherwise it could result in a use-after-free.
alloc
must be the same allocator which was used to allocate all the leaves of the tree.