We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
is_eof is convenient function when it has no additional overhead.
is_eof
For BufRead it can be implemented as
BufRead
fn is_eof(&mut self) -> Result<bool> { self.fill_buf().map(|b| b.is_empty()) }