expose bitflags iters using nameable types by KodrAus · Pull Request #286 · bitflags/bitflags · GitHub
Skip to content

expose bitflags iters using nameable types - #286

Merged
KodrAus merged 6 commits into
bitflags:mainfrom
KodrAus:feat/bitflags-trait-iter
Oct 6, 2022
Merged

KodrAus merged 6 commits into
bitflags:mainfrom
KodrAus:feat/bitflags-trait-iter

Conversation

@KodrAus

@KodrAus KodrAus commented Oct 6, 2022

Copy link
Copy Markdown
Member

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

KodrAus commented Oct 6, 2022

Copy link
Copy Markdown
Member Author

@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.

1 participant