-
Notifications
You must be signed in to change notification settings - Fork 139
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
EnumString: implement ToString/Display as well? #2
Comments
That's a good idea, and it shouldn't be too hard to add a The |
Oh great 👍 I'll watch for this as I prefer to have a single library doing this instead of rolling it by myself n-times. I've read about the multi-entry |
Hey @lucab, I merged changes into master. I couldn't find a keyword I was in love with; I wanted to stay in the spirit of |
Thanks, I'll give 0.6.0 a try. |
Adopted in camallo/dkregistry-rs#17, this suits what I was looking for. Closing. |
I was briefly looking at this crate, and I think I would love to see an automatic
to_string()
implementation and some way to link it to the current attributes-based approach employed forfrom_string()
. This would allow for roundtrips Enum <-> String.I'm actually thinking about something similar to serde ones plus additional aliases:
There are also a bunch more interesting methods in https://docs.rs/enum_derive/0.1.7/enum_derive/#overview.
The text was updated successfully, but these errors were encountered: