Convet any enum to String

Just to know is it possible to convert any given enum directly to String?

There's Debug print, but the exact output of it is not guaranteed, so I don't recommend using it for anything other than logging or error messages.

For proper conversion you need a macro, and there are a few crates that do it:

4 Likes

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.