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
14
use structified_enum::structify;

#[cfg(any(test, not(test)))]
#[structify]
#[cfg(any(test, not(test)))]
#[derive(PartialEq, Eq, Debug)]
#[cfg(any(test, not(test)))]
enum Foo {
    #[cfg(any(test, not(test)))]
    A,
    B,
}

fn main() {}