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

Override some provided Iterator methods for header map's Keys #667

Merged
merged 1 commit into from
Jan 29, 2024

Conversation

LukasKalbertodt
Copy link
Contributor

The inner iterator is simply a slice::Iter, so all of these can be done in constant time. Ideally, we would override advance_by, but that's still unstable.

With this, it is possible to build a poor man's retain, which was requested in #541. On that topic: would you be open to merge a PR adding retain? Then I might start working on that.

The `inner` iterator is simply a `slice::Iter`, so all of these can be
done in constant time. Ideally, we would override `advance_by`, but
that's still unstable.
@seanmonstar seanmonstar merged commit 9098a29 into hyperium:master Jan 29, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants