Skip to content

Conversation

@clechasseur
Copy link

This PR adds support for two new kinds of passthrough attributes on EnumDiscriminants:

  • Path only (ex: #[strum_discriminants(non_exhaustive)])
  • Name/value (ex: #[strum_discriminants(doc = "foo")])

This has been ported from clechasseur#15.

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

Successfully merging this pull request may close these issues.

1 participant