Skip to content

Conversation

amogh-dambal
Copy link
Contributor

This PR implements a suffix attribute for serializing enums via Display and AsRefStr. Much of the logic was borrowed (lifted) from the implementation of the prefix attribute since the implementation mechanism is fundamentally similar.

This PR also adds corresponding tests and documentation of the new feature, in addition to further tests of the prefix attribute to clarify behavior.

fixes #392

@Peternator7
Copy link
Owner

This looks really great! Thanks for the improvement :)

@Peternator7 Peternator7 merged commit bb13390 into Peternator7:master Jun 29, 2025
1 check passed
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.

Add the suffix attribute
2 participants