This library enables enums to not only obtain the ordinal values of their variants but also allows for the construction of enums from an ordinal value.
proc-macro2 • 1.0.89A substitute implementation of the compiler's `proc_macro` API to decouple token-based libraries from the procedural macro use case.