Crate nbits_vec [] [src]

travis-badge release-badge downloads docs-badge license-badge

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.

Structs

NbitsVec

Implement vector contains small N-bits values using Block as unit buffer.

Type Definitions

N1
N2
N3
N4
N5
N6
N7
N8
N9
N10
N11
N12
N13
N14
N15
N16
N17
N18
N19
N20
N21
N22
N23
N24
N25
N26
N27
N28
N29
N30
N31
N32
N33
N34
N35
N36
N37
N38
N39
N40
N41
N42
N43
N44
N45
N46
N47
N48
N49
N50
N51
N52
N53
N54
N55
N56
N57
N58
N59
N60
N61
N62
N63