Packages / rupm

trie-tools 0.1.0

A prefix tree with prefix search and autocomplete

Install

cargo add trie-tools --registry rupm

In Ruststudio: Packages, search for trie-tools, Install.

Owner: Rust Studio. Licence: MIT OR Apache-2.0. Total downloads: 0. Published 2026-11-22.

Versions

README

# trie-tools

A prefix tree with prefix search and autocomplete

Add it with `rupm add trie-tools` (or `cargo add trie-tools --registry rupm`).

```rust
let mut t = trie_tools::Trie::new();
t.insert("car");
t.insert("card");
assert_eq!(t.autocomplete("ca", 10), vec!["car", "card"]);
```