#vector #nibble #slice #data-structure #collection

nibble_vec

Vector data-structure for half-byte values

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

#250 in Data structures

Download history 1113/week @ 2019-01-22 1171/week @ 2019-01-29 886/week @ 2019-02-05 829/week @ 2019-02-12 926/week @ 2019-02-19 1272/week @ 2019-02-26 996/week @ 2019-03-05 870/week @ 2019-03-12 1467/week @ 2019-03-19 1154/week @ 2019-03-26 1416/week @ 2019-04-02 1472/week @ 2019-04-09 728/week @ 2019-04-16 898/week @ 2019-04-23 743/week @ 2019-04-30

4,449 downloads per month
Used in 19 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