Crate light_enum

Source
Expand description

A crate providing a derive keyword to generate a light enum.

This crate provide two derive keywords:

  • LightEnum will generate a new enum without the content of each field
  • Values will generate a vector containing each field of the enum

Derive Macrosยง

LightEnum
Generate a new enum [YourEnumName]Light without the content of each field
Values
Generate an array containing each field of an enum.