Skip to content

expose bitflags iters using nameable types#286

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

expose bitflags iters using nameable types#286
KodrAus merged 6 commits intobitflags:mainfrom
KodrAus:feat/bitflags-trait-iter

Conversation

@KodrAus
Copy link
Copy Markdown
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
Copy Markdown
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.

1 participant