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

#10 in Data structures

Download history 420/week @ 2018-09-01 602/week @ 2018-09-08 439/week @ 2018-09-15 317/week @ 2018-09-22 533/week @ 2018-09-29 698/week @ 2018-10-06 1125/week @ 2018-10-13 653/week @ 2018-10-20 748/week @ 2018-10-27 971/week @ 2018-11-03 614/week @ 2018-11-10 942/week @ 2018-11-17 924/week @ 2018-11-24

25,028 downloads per month
Used in 17 crates (1 directly)

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