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

Add an Enum::values() helper method #1

Closed
ryangjchandler opened this issue Feb 20, 2022 · 0 comments
Closed

Add an Enum::values() helper method #1

ryangjchandler opened this issue Feb 20, 2022 · 0 comments

Comments

@ryangjchandler
Copy link

To get a list of all scalar values for an enum, you'd currently have to loop over all ::cases() and get the value.

Having a helper for this would be sweet.

@stancl stancl closed this as completed in b50d001 Feb 20, 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

No branches or pull requests

1 participant