Closed KalitaAlexey closed 9 months ago
That's a good idea.
Indeed, there's no need to make traits other than Display
available for variant names, and it would be convenient if formatting traits for Self
could be made available.
I implemented this specification with de8a9431787053078ed706fc6ff53126c35a4acf.
There are some inefficiencies in the generated code, which I will eventually fix.
Thank you.
It generates the following
Display::fmt
:I think "{:?}" should generate the following: