Skip to main content

bits_to_u16

Function bits_to_u16 

Source
fn bits_to_u16(bits: &[bool]) -> u16
Expand description

Reads exactly bits.len() bits from a known in-bounds slice — no bounds checks.