-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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 IntoIterator
to &mut EventReader
#5719
Conversation
Yeah I don't think the ergonomics here is "worth it". We should sort out a way to remove the box. |
Gotcha, should definitely be possible, will mostly just be reworking the |
Closing this as I think the Box isn't the right direction. Given that theres movement on #5735, feel free to open a new pr with a new impl when its ready! |
# Objective - Be able to name the type that `ManualEventReader::iter/iter_with_id` returns and `EventReader::iter/iter_with_id` by proxy. Currently for the purpose of #5719 ## Solution - Create a custom `Iterator` type.
# Objective - Be able to name the type that `ManualEventReader::iter/iter_with_id` returns and `EventReader::iter/iter_with_id` by proxy. Currently for the purpose of #5719 ## Solution - Create a custom `Iterator` type.
# Objective - Be able to name the type that `ManualEventReader::iter/iter_with_id` returns and `EventReader::iter/iter_with_id` by proxy. Currently for the purpose of #5719 ## Solution - Create a custom `Iterator` type.
…gine#5735) # Objective - Be able to name the type that `ManualEventReader::iter/iter_with_id` returns and `EventReader::iter/iter_with_id` by proxy. Currently for the purpose of bevyengine#5719 ## Solution - Create a custom `Iterator` type.
…gine#5735) # Objective - Be able to name the type that `ManualEventReader::iter/iter_with_id` returns and `EventReader::iter/iter_with_id` by proxy. Currently for the purpose of bevyengine#5719 ## Solution - Create a custom `Iterator` type.
# Objective Continuation of #5719 Now that we have a definable type for the iterator. --- ## Changelog - Implemented IntoIterator for EventReader so you can now do `&mut reader` instead of `reader.iter()` for events.
# Objective Continuation of #5719 Now that we have a definable type for the iterator. --- ## Changelog - Implemented IntoIterator for EventReader so you can now do `&mut reader` instead of `reader.iter()` for events.
# Objective Continuation of bevyengine#5719 Now that we have a definable type for the iterator. --- ## Changelog - Implemented IntoIterator for EventReader so you can now do `&mut reader` instead of `reader.iter()` for events.
Objective
Solution