Crates.io | nbits_vec |
lib.rs | nbits_vec |
version | 0.1.1 |
source | src |
created_at | 2016-01-05 06:02:02.174435 |
updated_at | 2016-01-05 06:09:41.542468 |
description | Small bits value (e.g. 1,2.. bits) vector implementation. |
homepage | https://github.com/zitsen/nbits_vec.rs |
repository | https://github.com/zitsen/nbits_vec.rs.git |
max_upload_size | |
id | 3832 |
size | 73,474 |
A crate aims to resolve small bits values storage and operations problem.
Small bits values will be stored in a vector of Block
- which is a PrimInt
in
memory. Here, we only consider the case that one Block
will store some of the
small bits values, such as 1, 2, 3, 4, 5 bits stored in u8
, u16
, u32
, u64
.
WARN: In this crate, I(@zitsen) decided to use
RawVec
from unstable alloc
crate as vector background,
which means the API would only be avaliable in nightly
version of Rust and that
the API might be changed in some time the alloc
API changed.
So a stable
version may never give out.
See usage in struct documentation.