flagset
flagset copied to clipboard
[Feature]: Add a FlagSet::empty() method
Is there an existing issue for this?
- [X] I have searched the existing issues
Description
Add a FlagSet::empty() -> Self
method that returns an empty set.
This is more clear about the behavior/expected behavior than FlagSet::default()
. I could imagine a FlagSet::default()
implementation that returns a set with a predefined number of flags set.
Acceptance Criteria
Having a FlagSet::empty()
method.
Suggestions for a technical implementation
Forward to the FlagSet::default()
implementation.