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

IntoIterator docs should show its usage as a bound #44600

Closed
steveklabnik opened this issue Sep 15, 2017 · 3 comments
Closed

IntoIterator docs should show its usage as a bound #44600

steveklabnik opened this issue Sep 15, 2017 · 3 comments
Labels
A-docs Area: documentation for any part of the project, including the compiler, standard library, and tools C-enhancement Category: An issue proposing an enhancement or a PR with one. E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue. E-mentor Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion. P-medium Medium priority

Comments

@steveklabnik
Copy link
Member

IntoIterator has a complex set of associated types, and is commonly used as a bound on functions, but does not show its usage at all.

I'd be happy to help anyone out to make this better! Fundamentally, we should show a function that takes a generic argument that has a bound with IntoIterator.

@steveklabnik steveklabnik added E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue. E-mentor Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion. P-medium Medium priority A-docs Area: documentation for any part of the project, including the compiler, standard library, and tools labels Sep 15, 2017
iwillspeak added a commit to iwillspeak/rust that referenced this issue Sep 18, 2017
@iwillspeak
Copy link
Contributor

I'd like to have a go at this if that's OK. I'll open a pull request.

alexcrichton added a commit to alexcrichton/rust that referenced this issue Sep 18, 2017
…eveklabnik

Add Example of `IntoIterator` as Trait Bound to Docs

Part of rust-lang#44600.
alexcrichton added a commit to alexcrichton/rust that referenced this issue Sep 18, 2017
…eveklabnik

Add Example of `IntoIterator` as Trait Bound to Docs

Part of rust-lang#44600.
@Mark-Simulacrum Mark-Simulacrum added the C-enhancement Category: An issue proposing an enhancement or a PR with one. label Sep 18, 2017
@peter-b
Copy link

peter-b commented Sep 23, 2017

@steveklabnik @alexcrichton Should this be closed now that #44668 has been merged?

@alexcrichton
Copy link
Member

Indeed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-docs Area: documentation for any part of the project, including the compiler, standard library, and tools C-enhancement Category: An issue proposing an enhancement or a PR with one. E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue. E-mentor Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion. P-medium Medium priority
Projects
None yet
Development

No branches or pull requests

5 participants