Function blart::delete_unchecked

source ·
pub unsafe fn delete_unchecked<Q, K, V>(
    root: OpaqueNodePtr<K, V>,
    key: &Q
) -> Option<DeleteResult<K, V>>where
    K: Borrow<Q> + AsBytes,
    Q: AsBytes + ?Sized,
Expand description

Removes a key from the tree, returning the LeafNode corresponding to the key if the key was previously in the tree.

Safety

  • The root OpaqueNodePtr must be a unique pointer to the underlying tree
  • This function cannot be called concurrently to any reads or writes of the root node or any child node of root. This function will arbitrarily read or write to any child in the given tree.