Skip to main content

Module bits

Module bits 

Source
Expand description

Bit manipulation utilities.

This module handles conversions between bit-level and byte-level representations, commonly used in cryptographic and encoding contexts.

Functionsยง

bits_to_bytes
Converts a slice of bits (&[bool]) into a vector of bytes (Vec<u8>).
bytes_to_bits
Converts a slice of bytes (&[u8]) into a vector of bits (Vec<bool>).