Crate generic_btree
source ·Expand description
Generic B-Tree
It’s a pure safe BTree that can be used to build your own special-purpose btree data structure. It’s mainly developed to optimize the performance of Loro CRDT’s components.
It can be used to build:
- Rope
- Run length encoding data structure
- RangeMap that uses range as its key
- BTreeSet & BTreeMap
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.
Enums
Traits
Type Aliases
- This is a event listener for element move event. It’s used to track the which leaf node an element is in.