(bytes: &[u8], byte: u8)
| 56 | /// Returns the number of trailing bytes matching `byte` |
| 57 | #[inline] |
| 58 | fn trailing_bytes(bytes: &[u8], byte: u8) -> usize { |
| 59 | bytes.iter().rev().take_while(|&&b| b == byte).count() |
| 60 | } |
| 61 | |
| 62 | /// Left trim - removes leading characters |
| 63 | pub(crate) struct TrimLeft; |
no test coverage detected
searching dependent graphs…