Crate generic_btree
source ·Expand description
generic-btree
It’s a safe btree crate for versatile purposes:
- Rope
- BTreeMap / BTreeSet
- Run-length-encoding insert/delete
- Range map that uses range as key
Write buffer
This crate provides a write buffer that can be used to store updates on ancestor nodes. For example, we may need to update a range of elements in B-Tree together. Normally, it would take O(n) time to update each element, where n is the number of elements. With write buffer, we can update all elements within O(log n). And the actual updates are done when we need to iterate or query the related elements.
Modules
Structs
- Index type for
Arenathat has a generation attached to it. - A slice of element
- A generic length finder
- The move event of an element.
- A slice of elements in a leaf node of BTree.
Traits
Type Definitions
- This is a event listener for element move event. It’s used to track the which leaf node an element is in.