[src]

Module collections::bitv

BitPositions
Bits

An iterator for Bitv.

Bitv

The bitvector type

BitvSet

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

from_bools

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

from_bytes

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.

from_fn

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