-
-
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
[Merged by Bors] - Implement IntoIterator for ECS wrapper types. #5096
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm on board once the trait bounds are cleaned up. Calling IntoIterator
on a collection of Mut
/ ResMut
will trigger change detection on all of them, but that should be relatively obvious to users who are at a point where they care.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Formatting failure :p You have my failure, but you still need the machine's.
8859271
to
05e955a
Compare
I've decided to yeet the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Love the improvement in ergonomics. Should save some extra fenangling when using these traits.
fa6e611
to
497db12
Compare
bors r+ |
1 similar comment
bors r+ |
# Objective Improve ergonomics by passing on the `IntoIterator` impl of the underlying type to wrapper types. ## Solution Implement `IntoIterator` for ECS wrapper types (Mut, Local, Res, etc.). Co-authored-by: devil-ira <justthecooldude@gmail.com>
# Objective Improve ergonomics by passing on the `IntoIterator` impl of the underlying type to wrapper types. ## Solution Implement `IntoIterator` for ECS wrapper types (Mut, Local, Res, etc.). Co-authored-by: devil-ira <justthecooldude@gmail.com>
# Objective Improve ergonomics by passing on the `IntoIterator` impl of the underlying type to wrapper types. ## Solution Implement `IntoIterator` for ECS wrapper types (Mut, Local, Res, etc.). Co-authored-by: devil-ira <justthecooldude@gmail.com>
# Objective Improve ergonomics by passing on the `IntoIterator` impl of the underlying type to wrapper types. ## Solution Implement `IntoIterator` for ECS wrapper types (Mut, Local, Res, etc.). Co-authored-by: devil-ira <justthecooldude@gmail.com>
Objective
Improve ergonomics by passing on the
IntoIterator
impl of the underlying type to wrapper types.Solution
Implement
IntoIterator
for ECS wrapper types (Mut, Local, Res, etc.).