Lolirofle / enum_traits

Simple traits and derives for enums in the Rust programming language
MIT License
6 stars 5 forks source link

Add trait VariantName #3

Closed dfaust closed 7 years ago

dfaust commented 7 years ago

Returns the name of the currently instantiated variant as a str. I'm not entirely sure about the name though.