View all comments
Feature gate: #![feature(bufreader_peek)]
This is a tracking issue for the BufReader::peek method.
Public API
// std::io
impl BufReader {
fn peek(&mut self, n: usize) -> io::Result<&[u8]>
}
Steps / History
Unresolved Questions
- what should happen if
n > capacity? options are: short slice, error, or panic.
- should the buffer be completely filled, or should it only read the number of bytes requested?
View all comments
Feature gate:
#![feature(bufreader_peek)]This is a tracking issue for the
BufReader::peekmethod.Public API
Steps / History
Unresolved Questions
n>capacity? options are: short slice, error, or panic.Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩