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

[derive] intrinsic enum variant read and switching #235

Closed
jordens opened this issue Sep 23, 2024 · 1 comment
Closed

[derive] intrinsic enum variant read and switching #235

jordens opened this issue Sep 23, 2024 · 1 comment

Comments

@jordens
Copy link
Member

jordens commented Sep 23, 2024

Unclear how to do the equivalent of "impl Default for Enum::Variant".

With the current limitations to unit and newtypes variants is clear what to do.

split from #166

Doable currently with little overhead using strum. See tests/enum.rs.

@jordens
Copy link
Member Author

jordens commented Sep 24, 2024

Closing for now as this would only move the tag around in the namespace (might even be achievable with flatten).

@jordens jordens closed this as completed Sep 24, 2024
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