Crate enum_to_enum_derive[][src]

Expand description

enum_to_enum_derive

enum_to_enum exposes a derive macro to easily generate possibly effectful enum-to-enum conversions: #[derive(FromEnum)].

enum_to_enum_derive contains the actual macro definition. Clients should depend on enum_to_enum instead of enum_to_enum_derive.

Derive Macros

You can add #[derive(FromEnum)] to any enum to generate a possibly effectful From implementation to convert from other source enums to the annotated destination enum.