Tracking Issue for `bufreader_peek`
Open
@lolbinarycat is already working on this.
Since Jul 30, 2024.
C-tracking-issue
F-bufreader_peek
T-libs
- Dominant language
- Rust
- Stars
- 119k
- Forks
- 16.1k
- PR merge metrics
- PR metrics pending
Description
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
- ACP Accepted: https://github.com/rust-lang/libs-team/issues/417
- Implementation: https://github.com/rust-lang/rust/pull/128406
- Final comment period (FCP)^1
- Stabilization PR
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?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.