another_radix_trie

Crates.ioanother_radix_trie
lib.rsanother_radix_trie
version0.1.4
sourcesrc
created_at2020-03-15 21:51:05.751334
updated_at2020-07-20 20:16:35.532423
descriptionRust built radix tree library
homepagehttps://github.com/YaxinCheng/RadixTree
repositoryhttps://github.com/YaxinCheng/RadixTree
max_upload_size
id219001
size25,602
Yaxin Cheng (YaxinCheng)

documentation

README

another_radix_trie

Rust built radix tree with sorted vec

crate doc build licence

Example

Construct

use another_radix_trie::RadixTrie;
let mut trie = RadixTrie::<String>::new();

Insert

trie.insert("label", String::from("value"));

Find

trie.find("label");
// returns Some(&"value")

Find_mut

trie.find_mut("label");
// returns Some(&mut "value")

Remove

trie.remove("label");
// returns Some("value")

Start with

trie.insert("lab", "laboratory");
trie.insert("label", "label");
trie.starts_with("la");
// returns vec![("lab", &"laboratory"), ("label", &"label")]
Commit count: 17

cargo fmt