Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tracking Issue for BufRead::skip_until #111735

Open
1 of 3 tasks
WilliamVenner opened this issue May 18, 2023 · 5 comments
Open
1 of 3 tasks

Tracking Issue for BufRead::skip_until #111735

WilliamVenner opened this issue May 18, 2023 · 5 comments
Labels
C-tracking-issue Category: A tracking issue for an RFC or an unstable feature. disposition-merge This issue / PR is in PFCP or FCP with a disposition to merge it. proposed-final-comment-period Proposed to merge/close by relevant subteam, see T-<team> label. Will enter FCP once signed off. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.

Comments

@WilliamVenner
Copy link
Contributor

WilliamVenner commented May 18, 2023

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

Unresolved Questions

  • None yet.

Footnotes

  1. https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html

@WilliamVenner WilliamVenner added C-tracking-issue Category: A tracking issue for an RFC or an unstable feature. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. labels May 18, 2023
@IS2511
Copy link

IS2511 commented Apr 11, 2024

Any updates? Just stumbled into a use-case for this and can't use nightly.

@WilliamVenner
Copy link
Contributor Author

@rustbot ping libs

Shall we FCP?

@rustbot
Copy link
Collaborator

rustbot commented Aug 28, 2024

Error: Only Rust team members can ping teams.

Please file an issue on GitHub at triagebot if there's a problem with this bot, or reach out on #t-infra on Zulip.

@dtolnay
Copy link
Member

dtolnay commented Aug 28, 2024

@rust-lang/libs-api:
@rfcbot fcp merge

https://doc.rust-lang.org/nightly/std/io/trait.BufRead.html#method.skip_until

@rfcbot
Copy link

rfcbot commented Aug 28, 2024

Team member @dtolnay has proposed to merge this. The next step is review by the rest of the tagged team members:

No concerns currently listed.

Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up!

See this document for info about what commands tagged team members can give me.

@rfcbot rfcbot added proposed-final-comment-period Proposed to merge/close by relevant subteam, see T-<team> label. Will enter FCP once signed off. disposition-merge This issue / PR is in PFCP or FCP with a disposition to merge it. labels Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-tracking-issue Category: A tracking issue for an RFC or an unstable feature. disposition-merge This issue / PR is in PFCP or FCP with a disposition to merge it. proposed-final-comment-period Proposed to merge/close by relevant subteam, see T-<team> label. Will enter FCP once signed off. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

5 participants