Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 813 Bytes

README.md

File metadata and controls

18 lines (14 loc) · 813 Bytes

Simple trie implementation

This is an unoptimized not-production-ready trie implementation without path compression. Just a fun project.

Crates.io codecov Documentation Dependency status

Example

use mytrie::Trie;

let trie = Trie::from(["Hallo", "Hallöchen", "Tschüs"]);
let mut content: Vec<String> = trie.iter_content("Hall").collect();

content.sort();
assert_eq!(content, ["Hallo", "Hallöchen"]);