Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MnO2/cedarwood
/ functions
Functions
68 in github.com/MnO2/cedarwood
⨍
Functions
68
◇
Types & classes
9
↓ 17 callers
Method
update
Update the key for the value, it is public interface that works on &str
src/lib.rs:341
↓ 16 callers
Method
base
(&self)
src/lib.rs:84
↓ 15 callers
Method
build
Build the double array trie from the given key value pairs
src/lib.rs:334
↓ 11 callers
Method
node_unchecked
(&self, i: usize)
src/lib.rs:310
↓ 9 callers
Method
erase
Delete the key from the trie, the public interface that works on &str
src/lib.rs:465
↓ 8 callers
Method
common_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 callers
Method
exact_match_search
To check if `key` is in the dictionary.
src/lib.rs:521
↓ 6 callers
Function
build_cedar
()
benches/cedarwood_benchmark.rs:4
↓ 6 callers
Method
ninfo_unchecked
(&self, i: usize)
src/lib.rs:323
↓ 5 callers
Method
common_prefix_search
To return the collection of the common prefix in the dictionary with the `key` passed in.
src/lib.rs:549
↓ 5 callers
Method
transfer_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 callers
Method
follow
(&mut self, from: usize, label: u8)
src/lib.rs:391
↓ 3 callers
Method
find
(&self, key: &[u8], from: &mut usize)
src/lib.rs:423
↓ 2 callers
Method
add_block
Reallocate more spaces so that we have more free blocks.
src/lib.rs:703
↓ 2 callers
Method
begin
(&self, mut from: usize, mut p: usize)
src/lib.rs:588
↓ 2 callers
Method
build
Require the dictionary to be sorted in lexicographical order
benches/macro-benchmark/src/main.rs:15
↓ 2 callers
Method
common_prefix_predict
To return the list of words in the dictionary that has `key` as their prefix.
src/lib.rs:573
↓ 2 callers
Method
common_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 callers
Method
find_place
For the case where only one free slot is needed
src/lib.rs:954
↓ 2 callers
Function
find_sep
benches/cpp/bench_cedar.cc:15
↓ 2 callers
Method
next_until_none
(&mut self)
src/lib.rs:224
↓ 2 callers
Method
pop_e_node
Mark an edge `e` as used in a trie node.
src/lib.rs:753
↓ 2 callers
Method
push_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 callers
Method
push_e_node
Mark an edge `e` as free in a trie node.
src/lib.rs:809
↓ 2 callers
Method
push_sibling
push the `label` into the sibling chain
src/lib.rs:855
↓ 2 callers
Method
set_child
Collect the list of the children, and push the label as well if it is not terminal node.
src/lib.rs:926
↓ 1 callers
Method
consult
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 callers
Function
destroy
benches/cpp/bench_cedar.cc:29
↓ 1 callers
Method
erase_
Delete the key from the trie, the internal interface that works on &[u8]
src/lib.rs:470
↓ 1 callers
Method
erase__
(&mut self, mut from: usize)
src/lib.rs:481
↓ 1 callers
Method
find_places
For the case where multiple free slots are needed.
src/lib.rs:968
↓ 1 callers
Function
insert
benches/cpp/bench_cedar.cc:58
↓ 1 callers
Function
insert_key
benches/cpp/bench_cedar.cc:47
↓ 1 callers
Function
lookup
benches/cpp/bench_cedar.cc:74
↓ 1 callers
Function
lookup_key
benches/cpp/bench_cedar.cc:52
↓ 1 callers
Method
next
(&mut self)
src/lib.rs:172
↓ 1 callers
Method
pop_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 callers
Method
pop_sibling
remove the `label` from the sibling chain.
src/lib.rs:884
↓ 1 callers
Function
query
(dict: &mut R, cedar: &Cedar)
benches/macro-benchmark/src/main.rs:47
↓ 1 callers
Function
read_data
benches/cpp/bench_cedar.cc:31
↓ 1 callers
Method
resolve
resolve the conflict by moving one of the the nodes to a free block.
src/lib.rs:1036
↓ 1 callers
Method
update_
Update the key for the value, it is internal interface that works on &[u8] and cursor.
src/lib.rs:348
Function
bench
benches/cpp/bench_cedar.cc:87
Function
create
benches/cpp/bench_cedar.cc:26
Function
criterion_benchmark
(c: &mut Criterion)
benches/cedarwood_benchmark.rs:26
Method
default
()
src/lib.rs:117
Method
fmt
(&self, f: &mut fmt::Formatter)
src/lib.rs:147
Function
main
benches/cpp/bench_cedar.cc:130
Function
main
()
benches/macro-benchmark/src/main.rs:79
Method
new
()
benches/macro-benchmark/src/main.rs:10
Method
new
()
src/lib.rs:104
Method
size_hint
(&self)
src/lib.rs:168
Function
test_common_prefix_iter
()
src/lib.rs:1259
Function
test_common_prefix_predict
()
src/lib.rs:1297
Function
test_common_prefix_predict_returns_none_on_empty
()
src/lib.rs:1495
Function
test_common_prefix_search
()
src/lib.rs:1205
Function
test_common_prefix_search_returns_none_on_empty
()
src/lib.rs:1488
Function
test_duplication
()
src/lib.rs:1502
Function
test_erase
()
src/lib.rs:1346
Function
test_erase_on_internal_key
()
src/lib.rs:1366
Function
test_exact_match_search
()
src/lib.rs:1308
Function
test_insert_and_delete
()
src/lib.rs:1178
Function
test_mass_erase
()
src/lib.rs:1467
Function
test_quickcheck_like
()
src/lib.rs:1428
Function
test_quickcheck_like_with_deep_trie
()
src/lib.rs:1447
Function
test_unicode_grapheme_cluster
()
src/lib.rs:1331
Function
test_unicode_han_sip
()
src/lib.rs:1319
Function
test_update
()
src/lib.rs:1383