basic_tree
basic_tree
is the trie lib for rust ,
which utilizes Rc and Refcell to implemented
Examples
Word Trie
used for constructing word level trie
let word_trie = new;
let seq = "你在干什么";
let seq1 = "你在找什么";
word_trie.insert_words;
word_trie.insert_words;
println!;
Node Trie
used for constructing char level trie
let node = new;
let seq = vec!;
let seq1 = vec!;
insert_seq;
let leaf = get_leaf;
assert_ne!;
Trie trait
the basic trie trait. you can implement your own trie structure based on this trait.