GTrie
Trie is the library that implements the trie.
Trie is a generic data structure, written Trie<T, U>
where T
is node key type and U
is a
value type.
Motivation
Trie may be faster than other data structures in some cases.
For example, Trie
may be used as a replacement for HashMap
in case of a dictionary where
the number of words in dictionary is significantly less than number of different words in the
input.
Usage
use Trie;
let mut t = new;
t.add;
t.add;
t.add;
t.add;
t.add;
t.add;
t.add;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;