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

Add accessors for the inner of stream::Iter #2875

Merged
merged 1 commit into from
Sep 14, 2024

Conversation

wfraser
Copy link
Contributor

@wfraser wfraser commented Aug 2, 2024

This PR adds analogues to the methods of all the stream/sink combinators which allow accessing the thing being wrapped. Here it lets you access the iterator, which is currently not possible.

I'm intentionally not using the delegate_access_inner macro, because the doc comments describe the inner member as being a stream or sink, which it is not for Iter (it also requires using pin_project, which Iter does not do or need).

Copy link
Member

@taiki-e taiki-e left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

the doc comments describe the inner member as being a stream or sink

This is a mistake in the existing code and needs to be corrected to something like " the underlying type".
#2681

@taiki-e taiki-e merged commit 4befac9 into rust-lang:master Sep 14, 2024
3 of 24 checks passed
@taiki-e taiki-e added A-stream Area: futures::stream 0.3-backport: pending The maintainer accepted to backport this to the 0.3 branch, but backport has not been done yet. labels Sep 14, 2024
@taiki-e taiki-e mentioned this pull request Oct 5, 2024
@taiki-e taiki-e added 0.3-backport: completed and removed 0.3-backport: pending The maintainer accepted to backport this to the 0.3 branch, but backport has not been done yet. labels Oct 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants