Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Add a FlagSet::empty() method #42

Open
1 task done
jalil-salame opened this issue Sep 24, 2024 · 0 comments
Open
1 task done

[Feature]: Add a FlagSet::empty() method #42

jalil-salame opened this issue Sep 24, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@jalil-salame
Copy link

Is there an existing issue for this?

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

@jalil-salame jalil-salame added the enhancement New feature or request label Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant