pub fn lines_with_terminator(data: &str) -> Lines<'_, true>Notable traits for Lines<'a, INCLUDE_LINE_TERMINATOR>impl<'a, const INCLUDE_LINE_TERMINATOR: bool> Iterator for Lines<'a, INCLUDE_LINE_TERMINATOR>    type Item = &'a str;
Expand description

Returns a TokenSource that uses the lines in data as Tokens. The newline seperator (\r\n or \n) is included in the emitted tokens. This means that changing the newline seperator from \r\n to \n (or omitting it fully on the last line) is detected by diff.