enum-display

enum-display is a crate for implementing std::fmt::Display on enum variants with macros.

Simple Example

```rust use enumdisplayderive::EnumDisplay;

[derive(EnumDisplay)]

enum Color { Red, Green, Blue, }

asserteq!(Color::Red.tostring(), "Red"); asserteq!(Color::Green.tostring(), "Green"); asserteq!(Color::Blue.tostring(), "Blue"); ```

Example With Custom Case Transform

Any case from convert_case is supported.

```rust use enumdisplayderive::EnumDisplay;

[derive(EnumDisplay)]

[enum_display(case = "Kebab")]

enum Message { HelloGreeting { name: String }, }

asserteq!(Message::HelloGreeting { name: "Alice".tostring() }.to_string(), "hello-greeting"); ```