A crate with type definitions that allow for versatile operations on enums at compile time, including getting the count of variants and list of variant names.
const-enum-tools-derive can derive these traits for enums.
const-enum-tools-derive