Crate derivenum

Source
Expand description

This library provides useful derive macros intended for enums.

The main point of that is to reduce boilerplate code and add useful shortcuts.

Derive Macros§

EnumMatch
This derive macro adds matching functions for each of your enum’s variants.
EnumTake
This derive macro adds take functions to your enum’s variants to take the inner values out.