Skip to content
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

bevy_reflect: Allow construction of MapIter outside of the bevy_reflect crate. #8723

Merged
merged 4 commits into from
Jun 1, 2023

Conversation

gakit
Copy link
Contributor

@gakit gakit commented May 31, 2023

Objective

Right now it's impossible to construct a MapIter outside of the bevy_reflect crate, making it impossible to implement the Map trait for custom map types.

Solution

Addition of a pub constructor to MapIter.

@github-actions
Copy link
Contributor

Welcome, new contributor!

Please make sure you've read our contributing guide and we look forward to reviewing your pull request shortly ✨

@james7132 james7132 added C-Enhancement A new feature A-Reflection Runtime information about types labels May 31, 2023
@james7132 james7132 requested a review from MrGVSV May 31, 2023 16:46
@gakit
Copy link
Contributor Author

gakit commented May 31, 2023

MapIter fields are now private. Both impl_reflect_for_hashmap and DynamicMap impl updated.

Copy link
Member

@MrGVSV MrGVSV left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks for contributing! 😄

@MrGVSV MrGVSV added the S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it label May 31, 2023
@james7132 james7132 added this pull request to the merge queue Jun 1, 2023
Merged via the queue into bevyengine:main with commit acf1362 Jun 1, 2023
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Reflection Runtime information about types C-Enhancement A new feature S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants