-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
ChildBuilder methods should take IntoIterator, rather than a slice type #7229
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
Comments
Given the fact that there's already a pull request concerning updating this, is there anything i could help with here? if not, that's fine, just stumbled upon this project and thought it looked interesting. |
Is anyone currently working on this? Thinking about picking it up. |
#7244 is in progress: at this point I would suggest either adopting the work there (rebase the commits and make your own PR sharing credit) or making PRs to the author's branch and pinging them on the thread :) |
I started from #7244 and created #7939. But now I'm starting to wonder whether using an iterator that is consumed improves upon the ergonomics of passing an First, downstream code will want to use the My knowledge of Rust is shaky enough that I don't have well formed opinions on these questions. But the current state of the PR does not seem quite right, either. So I'm happy to leave this story for anyone else who wants to take it. |
That's a reasonable argument, but this is pretty hot code. I'm very reluctant to require additional allocations. |
That makes sense. If you can think of a way to avoid the intermediate vecs while still passing in an iterator to the trait methods, then perhaps the PR can be salvaged. Otherwise I'm inclined to close the PR. |
Alright, let's close it out then :) |
Originally posted by @NathanSWard in #6035 (comment)
The text was updated successfully, but these errors were encountered: