Feature gate: #![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.
let file = File::open("foo.txt")?; let reader = BufReader::new(file); let is_not_empty = reader.has_data_left()?;Steps / History
has_data_left
and whether the API should check the positive case or the negative case.is_at_eof
as the name of the new method).g-berthiaume, XVilka and nanoqsh
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4