tyenum 0.1.0

Attribute macro for type enums.
Documentation
use tyenum::tyenum;

#[derive(Debug, PartialEq)]
struct A;
#[derive(Debug, PartialEq)]
struct B;
#[derive(Debug, PartialEq)]
struct C;

#[tyenum]
#[derive(Debug, PartialEq)]
enum Test {
    A,
    BB(B),
    C(C),
}

#[test]
fn test() {
    assert_eq!(Test::A(A), A.into());
    assert_eq!(Test::BB(B), B.into());
    assert_eq!(Test::C(C), C.into());
}