[][src]Function ecpdap::bitvec::bytes_to_bits

pub fn bytes_to_bits(bytes: &[u8], n: usize) -> Result<Vec<bool>>

Convert a slice of u8 to a Vec of bool, least-significant-bit first. Reads exactly n bits; returns an error if n>bytes.len()*8.