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