Closed silence-coding closed 2 years ago
I wish the radius_trie would provide a feature to get the values for all prefix matches.
let mut trie = Trie::new(); trie.insert("/a/c", "/a/c"); trie.insert("/a/b/", "/a/b/"); trie.insert("/a/b/c", "/a/b/c"); assert_eq!(vec!["/a/b/", "/a/b/c"], trie.get_ancestor_values("/a/b/c"));
I wish the radius_trie would provide a feature to get the values for all prefix matches.