(bytes: &[u8], byte: u8)
| 50 | /// Returns the number of leading bytes matching `byte` |
| 51 | #[inline] |
| 52 | fn leading_bytes(bytes: &[u8], byte: u8) -> usize { |
| 53 | bytes.iter().take_while(|&&b| b == byte).count() |
| 54 | } |
| 55 | |
| 56 | /// Returns the number of trailing bytes matching `byte` |
| 57 | #[inline] |
no test coverage detected
searching dependent graphs…