-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
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 RFCT-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.disposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.This issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.The final comment period is finished for this PR / Issue.
Description
Feature gate: #![feature(bufread_skip_until)]
This is a tracking issue for BufRead::skip_until
, which is similar to BufRead::read_until
but doesn't write data to an output buffer; it simply skips past it.
This is useful when, for example, reading a binary file format but wanting to skip some data, like a NUL-terminated string.
Public API
// trait BufRead
fn skip_until(&mut self, byte: u8) -> std::io::Result<usize>;
Steps / History
- Implementation: Add
BufRead::skip_until
#98943 - Final comment period (FCP)1
- Stabilization PR
Unresolved Questions
- None yet.
Footnotes
teor2345
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 RFCT-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.disposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.This issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.The final comment period is finished for this PR / Issue.