MCPcopy Create free account

hub / github.com/MnO2/cedarwood / functions

Functions68 in github.com/MnO2/cedarwood

↓ 17 callersMethodupdate
Update the key for the value, it is public interface that works on &str
src/lib.rs:341
↓ 16 callersMethodbase
(&self)
src/lib.rs:84
↓ 15 callersMethodbuild
Build the double array trie from the given key value pairs
src/lib.rs:334
↓ 11 callersMethodnode_unchecked
(&self, i: usize)
src/lib.rs:310
↓ 9 callersMethoderase
Delete the key from the trie, the public interface that works on &str
src/lib.rs:465
↓ 8 callersMethodcommon_prefix_iter
To return an iterator to iterate through the common prefix in the dictionary with the `key` passed in.
src/lib.rs:537
↓ 8 callersMethodexact_match_search
To check if `key` is in the dictionary.
src/lib.rs:521
↓ 6 callersFunctionbuild_cedar
()
benches/cedarwood_benchmark.rs:4
↓ 6 callersMethodninfo_unchecked
(&self, i: usize)
src/lib.rs:323
↓ 5 callersMethodcommon_prefix_search
To return the collection of the common prefix in the dictionary with the `key` passed in.
src/lib.rs:549
↓ 5 callersMethodtransfer_block
transfer the block at idx from the linked-list of `from` to the linked-list of `to`, specially handle the case where the destination linked-list is em
src/lib.rs:744
↓ 4 callersMethodfollow
(&mut self, from: usize, label: u8)
src/lib.rs:391
↓ 3 callersMethodfind
(&self, key: &[u8], from: &mut usize)
src/lib.rs:423
↓ 2 callersMethodadd_block
Reallocate more spaces so that we have more free blocks.
src/lib.rs:703
↓ 2 callersMethodbegin
(&self, mut from: usize, mut p: usize)
src/lib.rs:588
↓ 2 callersMethodbuild
Require the dictionary to be sorted in lexicographical order
benches/macro-benchmark/src/main.rs:15
↓ 2 callersMethodcommon_prefix_predict
To return the list of words in the dictionary that has `key` as their prefix.
src/lib.rs:573
↓ 2 callersMethodcommon_prefix_predict_iter
To return an iterator to iterate through the list of words in the dictionary that has `key` as their prefix.
src/lib.rs:559
↓ 2 callersMethodfind_place
For the case where only one free slot is needed
src/lib.rs:954
↓ 2 callersFunctionfind_sep
benches/cpp/bench_cedar.cc:15
↓ 2 callersMethodnext_until_none
(&mut self)
src/lib.rs:224
↓ 2 callersMethodpop_e_node
Mark an edge `e` as used in a trie node.
src/lib.rs:753
↓ 2 callersMethodpush_block
return the block at idx to the linked-list of `to`, specially handled if the linked-list is empty
src/lib.rs:680
↓ 2 callersMethodpush_e_node
Mark an edge `e` as free in a trie node.
src/lib.rs:809
↓ 2 callersMethodpush_sibling
push the `label` into the sibling chain
src/lib.rs:855
↓ 2 callersMethodset_child
Collect the list of the children, and push the label as well if it is not terminal node.
src/lib.rs:926
↓ 1 callersMethodconsult
Loop through the siblings to see which one reached the end first, which means it is the one with smaller in children size, and we should try to reloca
src/lib.rs:912
↓ 1 callersFunctiondestroy
benches/cpp/bench_cedar.cc:29
↓ 1 callersMethoderase_
Delete the key from the trie, the internal interface that works on &[u8]
src/lib.rs:470
↓ 1 callersMethoderase__
(&mut self, mut from: usize)
src/lib.rs:481
↓ 1 callersMethodfind_places
For the case where multiple free slots are needed.
src/lib.rs:968
↓ 1 callersFunctioninsert
benches/cpp/bench_cedar.cc:58
↓ 1 callersFunctioninsert_key
benches/cpp/bench_cedar.cc:47
↓ 1 callersFunctionlookup
benches/cpp/bench_cedar.cc:74
↓ 1 callersFunctionlookup_key
benches/cpp/bench_cedar.cc:52
↓ 1 callersMethodnext
(&mut self)
src/lib.rs:172
↓ 1 callersMethodpop_block
pop a block at idx from the linked-list of type `from`, specially handled if it is the last one in the linked-list.
src/lib.rs:657
↓ 1 callersMethodpop_sibling
remove the `label` from the sibling chain.
src/lib.rs:884
↓ 1 callersFunctionquery
(dict: &mut R, cedar: &Cedar)
benches/macro-benchmark/src/main.rs:47
↓ 1 callersFunctionread_data
benches/cpp/bench_cedar.cc:31
↓ 1 callersMethodresolve
resolve the conflict by moving one of the the nodes to a free block.
src/lib.rs:1036
↓ 1 callersMethodupdate_
Update the key for the value, it is internal interface that works on &[u8] and cursor.
src/lib.rs:348
Functionbench
benches/cpp/bench_cedar.cc:87
Functioncreate
benches/cpp/bench_cedar.cc:26
Functioncriterion_benchmark
(c: &mut Criterion)
benches/cedarwood_benchmark.rs:26
Methoddefault
()
src/lib.rs:117
Methodfmt
(&self, f: &mut fmt::Formatter)
src/lib.rs:147
Functionmain
benches/cpp/bench_cedar.cc:130
Functionmain
()
benches/macro-benchmark/src/main.rs:79
Methodnew
()
benches/macro-benchmark/src/main.rs:10
Methodnew
()
src/lib.rs:104
Methodsize_hint
(&self)
src/lib.rs:168
Functiontest_common_prefix_iter
()
src/lib.rs:1259
Functiontest_common_prefix_predict
()
src/lib.rs:1297
Functiontest_common_prefix_predict_returns_none_on_empty
()
src/lib.rs:1495
Functiontest_common_prefix_search
()
src/lib.rs:1205
Functiontest_common_prefix_search_returns_none_on_empty
()
src/lib.rs:1488
Functiontest_duplication
()
src/lib.rs:1502
Functiontest_erase
()
src/lib.rs:1346
Functiontest_erase_on_internal_key
()
src/lib.rs:1366
Functiontest_exact_match_search
()
src/lib.rs:1308
Functiontest_insert_and_delete
()
src/lib.rs:1178
Functiontest_mass_erase
()
src/lib.rs:1467
Functiontest_quickcheck_like
()
src/lib.rs:1428
Functiontest_quickcheck_like_with_deep_trie
()
src/lib.rs:1447
Functiontest_unicode_grapheme_cluster
()
src/lib.rs:1331
Functiontest_unicode_han_sip
()
src/lib.rs:1319
Functiontest_update
()
src/lib.rs:1383