Macro EnumDisplay
Source macro_rules! EnumDisplay {
(() $vis:vis enum $name:ident { $($body:tt)* }) => { ... };
}
Expand description
Derives Display for an unitary enum, which outputs the name of the variant.
Note that this is identical to the behaviour of a derived Debug implementation.