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

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