Add an all_named ctor for filtering out catch-all flags #484

Merged
KodrAus merged 4 commits from feat/all_named into main 2026-05-29 07:25:47 -05:00
KodrAus commented 2026-05-29 07:04:47 -05:00 (Migrated from github.com)

Closes #443

This PR introduces a Flags::all_named constructor that can filter out the catch-all _: !0 flag used by external flags types. It's almost worth adding it as an inherent const function to the target flags type too, but we can't do that without risking breakage unfortunately.

Closes #443 This PR introduces a `Flags::all_named` constructor that can filter out the catch-all `_: !0` flag used by external flags types. It's almost worth adding it as an inherent `const` function to the target flags type too, but we can't do that without risking breakage unfortunately.
Sign in to join this conversation.
No reviewers
No labels
bug
good first issue
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-bitflags/bitflags!484
No description provided.