Module code_rs::bits

source · []
Expand description

Dibits, tribits, and hexbits.

Structs

Two bits.

Parameters for DibitBytes iterator.

Parameters for Dibits iterator.

Six bits.

Parameters for HexbitBytes iterator.

Parameters for Hexbits iterator.

An iterator for sub-byte (bit-level) values.

Three bits.

Parameters for TribitBytes iterator.

Parameters for Tribits iterator.

Traits

Type Definitions

Groups dibits into full bytes. The source must be a multiple of 4 dibits.

Iterate over the 2-bit symbols of a byte source, MSB to LSB.

Groups hexbits into full bytes. The source must be a multiple of 6 hexbits.

Iterates over the 6-bit symbols of a byte source, MSB to LSB. The source must be a multiple of 3 bytes.

Groups tribits into full bytes. The source must be a multiple of 8 tribits.

Iterates over the 3-bit symbols of a byte source, MSB to LSB. The source must be a multiple of 3 bytes.