Add an all_named ctor for filtering out catch-all flags #484
No reviewers
Labels
No labels
bug
good first issue
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-bitflags/bitflags!484
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/all_named"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #443
This PR introduces a
Flags::all_namedconstructor that can filter out the catch-all_: !0flag used by external flags types. It's almost worth adding it as an inherentconstfunction to the target flags type too, but we can't do that without risking breakage unfortunately.