We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
BufRead::has_data_left
Feature gate: #![feature(buf_read_has_data_left)]
#![feature(buf_read_has_data_left)]
This is a tracking issue for adding has_data_left to BufRead. Its purpose is to determine whether a reader has any data left over to read.
has_data_left
BufRead
let file = File::open("foo.txt")?; let reader = BufReader::new(file); let is_not_empty = reader.has_data_left()?;
is_at_eof
Feature gate:
#![feature(buf_read_has_data_left)]This is a tracking issue for adding
has_data_lefttoBufRead. Its purpose is to determine whether a reader has any data left over to read.Example
Steps / History
Unresolved Questions
has_data_leftand whether the API should check the positive case or the negative case.is_at_eofas the name of the new method).