A radix tree data structure
A radix tree is a map data structure that has fast and memory efficient storage of keys that have common prefixes. It can be used as a set by using a unit value.
This radix tree is using blobs as keys and values. A common use case is to use UTF-8 strings as keys.
Basic usage
Basic usage is not that different from using a std collection such as BTreeMap.
Example
# use *;
let mut dict = default;
dict.insert;
dict.insert;
assert!;
for in dict.iter
Advanced usage
You can provide a custom store for a radix tree, which can be either a contiguous slice of memory, a file on disk, or a custom storage backend.
Custom storage backends are enabled using the custom-storage feature.
The storage is usually fallible, e.g. when reading from a disk or network. When using a fallible storage, every interaction with a radix tree can fail. Therefore there is a fallible version of all methods.
Example
# use *;
# use BlobStore;
#