Pruning Radix Trie
Rust implementation of Pruning Radix Trie, originally by Wolf Garbe (see credits/PruningRadixTrieLicense.txt).
Usage
Add terms with payloads to the trie with:
;
After which you can prefix match with:
Results are returned in descending order based on weight.
Example
use PruningRadixTrie;
Testing
Measuring code coverage
N.B.: At the moment, the nightly channel of Rust is required.
First of all, install grcov
Second, install the llvm-tools Rust component (llvm-tools-preview for now, it might become llvm-tools soon):
To run tests with code coverage run
bash run_source_cov.sh
A html coverage report will be generated in ./target/debug/coverage/
See rust-code-coverage-sample for details.