Module uucore::lines

source ·
Expand description

Iterate over lines, including the line ending character(s).

This module provides the lines function, similar to the BufRead::lines method. While the BufRead::lines method yields String instances that do not include the line ending characters ("\n" or "\r\n"), our functions yield Vec<[‘u8’]> instances that include the line ending characters. This is useful if the input data does not end with a newline character and you want to preserve the exact form of the input data.

Structs

  • An iterator over the lines of an instance of BufRead.

Functions

  • Returns an iterator over the lines, including line ending characters.