enum-ordinalize-derive (4.3.2)
Published 2026-03-26 10:32:29 +00:00 by siennathesane
Installation
[registry]
default = "gitea"
[registries.gitea]
index = "sparse+ " # Sparse index
# index = " " # Git
[net]
git-fetch-with-cli = truecargo add enum-ordinalize-derive@4.3.2About this package
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.
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
Dependencies
| ID | Version |
|---|---|
| proc-macro2 | ^1 |
| quote | ^1 |
| syn | ^2 |
Keywords
enum
ordinal
ordinalize
number