derive_custom_enum_traits

Crates.ioderive_custom_enum_traits
lib.rsderive_custom_enum_traits
version0.1.0
sourcesrc
created_at2022-03-03 03:27:46.44738
updated_at2022-03-03 03:27:46.44738
descriptionDerive macros for dealing with enums. This adds derive macros to the `custom_enum_traits` package.
homepage
repository
max_upload_size
id542716
size6,629
Max Lee (maxblee)

documentation

README

derive_custom_enum_traits

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>.

Commit count: 0

cargo fmt