catalog

Crates.iocatalog
lib.rscatalog
version0.1.2
sourcesrc
created_at2016-07-25 11:24:58.695884
updated_at2017-09-09 05:15:42.712813
descriptionA file-based map to store key/value pairs in a file and get them using binary search
homepage
repositoryhttps://github.com/Wafflespeanut/rust-catalog
max_upload_size
id5780
size29,882
Eric Stokes (estokes)

documentation

https://wafflespeanut.github.io/rust-catalog/catalog/

README

rust-catalog

A "file-backed" map, which inserts keys and values into a file in O(n) time, and gets the values in O(log-n) time using binary search and file seeking. For now, it only supports insertion and getting of (hashable) keys and values that implement the Display and FromStr traits (i.e., those which can be converted to string and parsed back from string).

See the module documentation for more information.

Usage

Note that this was an experiment, and so use it at your own risk!

Add the following to your Cargo.toml...

catalog = "0.1.2"

Have a look at the detailed example for the precise usage.

Commit count: 24

cargo fmt