veb

Crates.ioveb
lib.rsveb
version0.1.0
sourcesrc
created_at2021-12-24 23:23:10.787338
updated_at2021-12-24 23:23:10.787338
descriptionImplementation of a van Emde Boas tree
homepage
repositoryhttps://github.com/Stranger6667/veb
max_upload_size
id502804
size5,779
Dmitry Dygalo (Stranger6667)

documentation

README

vEB

A WIP Rust implementation of a van Emde Boas tree.

fn main() {
    let mut tree = veb::VebTree::new(1024);
    tree.insert(50);
    assert!(tree.contains(50));
    assert!(!tree.contains(49));
}

NOTE: This is an alpha version and is not ready for production use.

TODO:

  • Insert
  • Contains
  • Delete one
  • Delete all
  • Find next
  • Find prev
  • Size
  • Iteration + exact size iteration + fused, double ended iterator
  • Extend from iterator
  • Drain / drain filter / retain / take
  • Default / Debug
  • First / last (with pop)
  • Append
  • Fuzzing
  • Generic over T
  • Clone
  • Eq
  • Some From impls (e.g. &[usize])
  • O(n) space
  • More tests
  • Detailed comments & docs
  • Arena-based allocation
Commit count: 5

cargo fmt