This is an unoptimized not-production-ready trie implementation without path compression. Just a fun project.
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"]);