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

Traits

Type Definitions