Struct std::old_io::LinesUnstable
[-] [+]
[src]
pub struct Lines<'r, T: 'r> { // some fields omitted }
An iterator that reads a line on each iteration,
until .read_line()
encounters EndOfFile
.
Notes about the Iteration Protocol
The Lines
may yield None
and thus terminate
an iteration, but continue to yield elements if iteration
is attempted again.
Error
Any error other than EndOfFile
that is produced by the underlying Reader
is returned by the iterator and should be handled by the caller.