Skip to content

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

Merged
seanmonstar merged 1 commit intohyperium:masterfrom
LukasKalbertodt:master
Jan 29, 2024
Merged

Override some provided Iterator methods for header map's Keys#667
seanmonstar merged 1 commit intohyperium:masterfrom
LukasKalbertodt:master

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
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.

2 participants