rs-collections-trie 0.1.0
A prefix tree with prefix search and autocomplete
Install
cargo add rs-collections-trie --registry rupm
In Ruststudio: Packages, search for rs-collections-trie, Install.
Owner: Rust Studio. Licence: MIT OR Apache-2.0. Total downloads: 0. Published 2026-11-23.
Versions
- 0.1.0 2026-11-23
README
# rs-collections-trie
A prefix tree with prefix search and autocomplete
Add it with `rupm add rs-collections-trie` (or `cargo add rs-collections-trie --registry rupm`).
```rust
let mut t = rs_collections_trie::Trie::new();
t.insert("car");
t.insert("card");
assert_eq!(t.autocomplete("ca", 10), vec!["car", "card"]);
```