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

expose bitflags iters using nameable types #286

Merged
merged 6 commits into from Oct 6, 2022

Conversation

KodrAus
Copy link
Member

@KodrAus KodrAus commented Oct 6, 2022

Unblocks #285
Part of #262, #28

This PR is the last piece of the puzzle for a 2.0 release of the library that includes a BitFlags trait. It exposes iterators for the names and values of set flags that can be referenced through the BitFlags trait, such as <Flags as BitFlags>::Iter. The wrapped_iter UI test has an example of how to refer to the iterators.

@KodrAus
Copy link
Member Author

KodrAus commented Oct 6, 2022

I think we can simplify the machinery between the public and internal types to use less indirection, now that all the impl blocks live alongside one another. This would also have the benefit of simplifying the types that appear in the docs.

@KodrAus KodrAus mentioned this pull request Oct 6, 2022
@KodrAus KodrAus merged commit 87e859b into bitflags:main Oct 6, 2022
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.

None yet

1 participant