Skip to content

Conversation

krakow10
Copy link
Contributor

@krakow10 krakow10 commented May 29, 2025

IntoIterator is the best trait bound for an iterable function argument, just like Vec::extend. Calling .into_iter() on anything already an iterator is a no-op.

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.

1 participant