| Crates.io | derive_custom_enum_traits |
| lib.rs | derive_custom_enum_traits |
| version | 0.1.0 |
| created_at | 2022-03-03 03:27:46.44738+00 |
| updated_at | 2022-03-03 03:27:46.44738+00 |
| description | Derive macros for dealing with enums. This adds derive macros to the `custom_enum_traits` package. |
| homepage | |
| repository | |
| max_upload_size | |
| id | 542716 |
| size | 6,629 |
This is a set of (currently one) derive macros for Rust for dealing with enums. Its current macro, DeriveIndex
creates two functions for an enum, to_index, which converts an enum variant into its 0-indexed order; and
from_index which converts a usize into an Option<Variant>.