A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/rust-lang/rust/issues/86423 below:

Tracking Issue for `BufRead::has_data_left` · Issue #86423 · rust-lang/rust · GitHub

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.

Example
let file = File::open("foo.txt")?;
let reader = BufReader::new(file);
let is_not_empty = reader.has_data_left()?;
Steps / History Unresolved Questions

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