shebling-codegen 0.0.0

Utility procedural macros for the `shebling` crate
Documentation
use shebling_codegen::struct_enum;

// The attribute should handle generics just fine.

struct Foo<T> {
    foo: T,
}

#[struct_enum]
enum Bar<T> {
    Foo(Foo<T>),
}

fn main() {
    let foo = Foo { foo: 17 };
    let bar = Bar::from(foo);

    assert!(matches!(bar, Bar::Foo(_)));
}