5 releases

0.1.0 Jun 27, 2020
0.0.5 Jun 26, 2020
0.0.4 Nov 7, 2017
0.0.3 Apr 5, 2015
0.0.2 Mar 31, 2015

#1865 in Data structures

Download history 184222/week @ 2024-10-29 290269/week @ 2024-11-05 352711/week @ 2024-11-12 337988/week @ 2024-11-19 234059/week @ 2024-11-26 299657/week @ 2024-12-03 349440/week @ 2024-12-10 251185/week @ 2024-12-17 105964/week @ 2024-12-24 177885/week @ 2024-12-31 329370/week @ 2025-01-07 320595/week @ 2025-01-14 288969/week @ 2025-01-21 299832/week @ 2025-01-28 347164/week @ 2025-02-04 319528/week @ 2025-02-11

1,290,720 downloads per month
Used in 534 crates (2 directly)

MIT license

17KB
337 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.5"

Documentation

API documentation is available here:

https://docs.rs/nibble_vec

Contributors

Made by:

License

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

Dependencies

~66KB