procedurals 0.3.1

Collection of proc-macros
Documentation

#[macro_use]
extern crate procedurals;

struct A {}
struct B {}

#[derive(IntoEnum)]
enum E {
    A(A),
    B(B),
}

#[test]
fn into_enum() {
    let a = A {};
    let _e: E = a.into();
}