Provide a .windows type interface
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
Research direction
No file or test is named in the issue. Start by reading the existing iterator adapter's public API and tests, then define the consuming behavior and interface for windows and peek_window; done means the API and its semantics are unambiguous and covered by tests.
Written by the indexing model from the issue text.
Description
It would be useful if you could either use .windows like you could in a regular iterator, windows may or may not be consuming (I would assume regular windows should be consuming like calling .next). Also the ability to peek at windows, a useful interface would be something like:
let mut iter = bytes.iter().peekable();
while let Some(window) = iter.peek_window::<4>() {
This would be pretty useful for parsers as one use case.
- Dominant language
- Rust
- Stars
- 28
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
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.
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
gitbutlerapp/gitbutler#15998 · 1 comment ·
-
bug triage:deciding
Difficulty 1/5 Under an hour Newbie friendliness 88/100
open-telemetry/otel-arrow#4132 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100