fn bits_to_u16(bits: &[bool]) -> u16
Reads exactly bits.len() bits from a known in-bounds slice — no bounds checks.
bits.len()