Add IntoIterator to &mut EventReader#5719
Closed
Aceeri wants to merge 1 commit intobevyengine:mainfrom
Closed
Conversation
Member
|
Yeah I don't think the ergonomics here is "worth it". We should sort out a way to remove the box. |
Member
Author
|
Gotcha, should definitely be possible, will mostly just be reworking the |
Member
|
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! |
bors bot
pushed a commit
that referenced
this pull request
Dec 25, 2022
# 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.
bors bot
pushed a commit
that referenced
this pull request
Dec 25, 2022
# 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.
bors bot
pushed a commit
that referenced
this pull request
Dec 25, 2022
# 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.
alradish
pushed a commit
to alradish/bevy
that referenced
this pull request
Jan 22, 2023
…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.
ItsDoot
pushed a commit
to ItsDoot/bevy
that referenced
this pull request
Feb 1, 2023
…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.
bors bot
pushed a commit
that referenced
this pull request
Feb 17, 2023
# 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.
bors bot
pushed a commit
that referenced
this pull request
Feb 17, 2023
# 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.
myreprise1
pushed a commit
to myreprise1/bevy
that referenced
this pull request
Feb 18, 2023
# 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Objective
Solution