fn lines(bytes: &[u8]) -> impl Iterator<Item = (&[u8], bool)>
Split a chunk into its lines. Every line but the last ends with a newline, the last one is partial if the chunk does not end with one. An empty chunk has no lines.