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§

iter
rle

Structs§

BTree
Child
Cursor
ElemSlice
A slice of element
FindResult
LeafIndex
Exposed arena index
LeafNode
LengthFinder
A generic length finder
Node
OrdTreeMap
OrdTreeSet
QueryResult
Rope
SplittedLeaves

Enums§

ArenaIndex
PreviousCache

Traits§

BTreeTrait
Elem should has length. offset in search result should always >= Elem.rle_len()
Query
UseLengthFinder

Type Aliases§

HeapVec