Left-Right Trie
Left-Right trie is trie that allows mapping of any string to any string with complexity based on alphabet used size.
let mut trie = new;
let one = new.unwrap;
let another = new.unwrap;
trie.insert;
assert!;
assert!;
assert!;
Left-Right trie is trie that allows mapping of any string to any string with complexity based on alphabet used size.
let mut trie = LrTrie::new();
let one = KeyEntry::new("emoción").unwrap();
let another = KeyEntry::new("emotion").unwrap();
trie.insert(&one, &another);
assert!(trie.member(&one, LeftRight::Left).is_some());
assert!(trie.member(&another, LeftRight::Left).is_none());
assert!(trie.member(&another, LeftRight::Right).is_some());