Yet another enum helper.
This crate provides derive macros that generate common boilerplate for enums.
[dependencies]
enum-helper = "0.3"The derive feature is enabled by default.
EnumStr: convert between enum and stringEnumAll: get an array of all variantsEnumKind: generate a unit kind enum from a data-carrying enum
derive(default): re-exports derive macros
strum: the most feature-rich enum derive crate (comparison)enum-kinds: generates a unit kind enum (similar toEnumKind)enum-iterator: iterate over all variants (similar toEnumAll)derive_more: general-purpose derive macros
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.