13 releases

0.1.3 Feb 25, 2018
0.1.2 Sep 10, 2017
0.1.1 Jun 3, 2017
0.0.9 Jun 4, 2016
0.0.1 Mar 20, 2015

#8 in Data structures

Download history 5908/week @ 2018-05-06 7713/week @ 2018-05-13 7462/week @ 2018-05-20 6722/week @ 2018-05-27 7234/week @ 2018-06-03 6742/week @ 2018-06-10 5682/week @ 2018-06-17 5865/week @ 2018-06-24 7307/week @ 2018-07-01 4942/week @ 2018-07-08 1515/week @ 2018-07-15 1373/week @ 2018-07-22 1077/week @ 2018-07-29

25,221 downloads per month

Rust Radix Trie

Build Status

This is a Radix Trie implementation in Rust, building on the lessons learnt from TrieMap and Sequence Trie. You can read about my experience implementing this data structure here.

Help Wanted, Enquire Within

Since writing this code I haven't used it in anger (or production) so it is no doubt in need of some maintenance, testing and optimisation love. If you would like to help out, try solving an open issue, optimise something, or just have a poke around! Thanks :)

Features

  • Compressed nodes. Common key prefixes are stored only once.
  • Trie-specific methods to look-up closest ancestors and descendants.
  • Key Generic. Any type that can be serialised as a vector of bytes can be used as a key.
  • Safe - no unsafe code.

Documentation

https://docs.rs/radix_trie/

Usage

Available on Crates.io as radix_trie.

Just add radix_trie to the dependencies section of your Cargo.toml, like so:

radix_trie = "0.1"

Contributors

Made by:

License

MIT License. Copyright © Michael Sproul and contributors 2015-2018.

MIT license

Dependencies

Reverse deps