4 releases

0.0.4 Nov 7, 2017
0.0.3 Apr 5, 2015
0.0.2 Mar 31, 2015
0.0.1 Mar 20, 2015

#449 in Data structures

Download history 7520/week @ 2019-12-10 4334/week @ 2019-12-17 2016/week @ 2019-12-24 2575/week @ 2019-12-31 5008/week @ 2020-01-07 4364/week @ 2020-01-14 4703/week @ 2020-01-21 6573/week @ 2020-01-28 5857/week @ 2020-02-04 5360/week @ 2020-02-11 6812/week @ 2020-02-18 7451/week @ 2020-02-25 6451/week @ 2020-03-03 5594/week @ 2020-03-10 6350/week @ 2020-03-17 5648/week @ 2020-03-24

22,092 downloads per month
Used in 54 crates (via radix_trie)

MIT license

15KB
300 lines

NibbleVec

Build Status

Data-structure for storing a sequence of half-bytes.

Wraps a Vec<u8>, providing safe and memory-efficient storage of 4-bit values.

In terms of supported operations, the structure behaves kind of like a fixed length array, in that insertions into the middle of the vector are difficult (and unimplemented at present).

Usage

This code is available on the Rust package host:

https://crates.io/crates/nibble_vec

You can use it in your own projects by adding nibble_vec as a dependency in your Cargo.toml.

[dependencies]
nibble_vec = "0.0.3"

Documentation

API documentation is available here:

https://docs.rs/nibble_vec

License

MIT License. Copyright © Michael Sproul and contributors 2015-2017.

No runtime deps