[−][src]Macro thorium::newtype_enum
Assists in defining a newtype that's an enum.
First give NewType = OldType,
, then define the tags and their explicit
values with zero or more entries of TagName = base_value,
. In both cases
you can place doc comments or other attributes directly on to the type
declaration or the tag declaration.
The generated enum will get an appropriate repr
attribute as well as
Debug, Clone, Copy, PartialEq, and Eq