9 releases (1 stable)

1.1.8 Oct 31, 2022
0.1.7 Oct 26, 2022

#2357 in Data structures

27 downloads per month

MIT license

23KB
586 lines

trie-generic

THIS IS CURRENTLY A WORK IN PROGRESS! API MAY CHANGE WITHOUT WARNING.

Rust

Generic implementation of a trie.

Install

Add trie-generic to the dependencies on your Cargo.toml file:

[dependencies]
trie-generic = "0.1.2"

API

Example

To do

  • t.set(key, value)
  • t.all() -> (key, value)
  • t.subtree(prefix) -> Trie
  • Improve docs
  • Replace string/Vec with Iterator

Bugs and stuff

Open a GitHub issue or, preferably, send me a pull request.

No runtime deps