enum-helper 0.1.0

Yet another enum helper. Macros that generate common boilerplate for enums.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use assert2::check;
use enum_helper::EnumKind as _;

mod inner {
    use enum_helper::EnumKind;

    #[derive(EnumKind, PartialEq, Eq)]
    pub enum PubInner {
        Foo,
    }
}

#[test]
fn pub_outer() {
    check!(inner::PubInner::Foo.kind() == inner::PubInnerKind::Foo);
}