14 stable releases
4.3.1 | Dec 15, 2023 |
---|---|
4.2.9 | Dec 15, 2023 |
4.2.4 | Nov 30, 2023 |
#15 in #ordinal
731,591 downloads per month
Used in 219 crates
(2 directly)
46KB
1K
SLoC
Enum Ordinalize Derive
This crate provides a procedural macro that enables enums to not only obtain the ordinal values of their variants but also allows for the construction of enums from an ordinal value.
See the enum-ordinalize
crate.
Crates.io
https://crates.io/crates/enum-ordinalize
Documentation
https://docs.rs/enum-ordinalize
License
lib.rs
:
Enum Ordinalize Derive
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. See the enum-ordinalize
crate.
Dependencies
~1.5MB
~42K SLoC