Crate rle_bitset

Source
Expand description

A no-std, no-alloc trait for querying and manipulating bits in a [[usize]] and iterating their run lengths.

Structs§

OutOfRange
A single inhabitancy type marking that we were out of range.
RL
A run length - a range of the same value repeated.
RLE
An iterator over run lengths of bits.

Constants§

WORD_WIDTH

Traits§

RLEBits
A trait that allows reading, setting and iterating bits by their run lengths.

Functions§

words_needed
Returns the number of usizes needed to capture the given number of bits.