-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCF-bufreader_peek`#![feature(bufreader_peek)]``#![feature(bufreader_peek)]`T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
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: ACP: BufReader::peek libs-team#417
- Implementation: implement BufReader::peek #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?
Footnotes
Metadata
Metadata
Assignees
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCF-bufreader_peek`#![feature(bufreader_peek)]``#![feature(bufreader_peek)]`T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.