Module lines::linereader [] [src]

Iterates over lines of a given reader by keeping an internal buffer which client code is handed a reference to for consumption of the line.

Since this module implements internal buffering, there is no need for clients to supply a buffering reader implementation.

Structs

LineReader

Wraps a Read and provides a way to iterate over lines split on a newline character.

Functions

count_lines

Counts the lines read through the given LineReader.