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>).