pub fn leading_ones(slice: &[u8], offset: usize, len: usize) -> usize
Expand description
Returns the number of one bits before seeing a zero bit in the slice offsetted by offset
and
a length of length
.
ยงPanics
This function panics iff `offset + len > 8 * slice.len()``.