structified_enum 0.1.0

Marcos to structify unit-like enum with discriminants
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use structified_enum::structify;

#[structify]
#[other_attr]
enum Foo {}

#[structify]
enum Bar {
    #[other_attr]
    A
}

fn main() {}