strum icon indicating copy to clipboard operation
strum copied to clipboard

Implement a `suffix` attribute for serialization of enum variants

Open amogh-dambal opened this issue 7 months ago • 0 comments

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

amogh-dambal avatar May 11 '25 18:05 amogh-dambal