Module extra::bitv

Structs

Bitv

The bitvector type

BitvIterator

An iterator for Bitv

BitvSet

An implementation of a set using a bit vector as an underlying representation for holding numerical elements.

BitvSetIterator

Functions

from_bools

Transform a [bool] into a bitv by converting each bool into a bit.

from_fn

Create a bitv of the specified length where the value at each index is f(index).

from_utf8

Transform a byte-vector into a bitv. Each byte becomes 8 bits, with the most significant bits of each byte coming first. Each bit becomes true if equal to 1 or false if equal to 0.