#[derive(EnumVariantType)]
enum MyEnum {
A,
B,
C,
}
would generate a marker trait like such:
trait MyEnumVariant: Into<MyEnum> + TryFrom<MyEnum> {}
and implement it on each variant's generated struct.
It could have additional supertraits according to #[evt(derive)] on the enum.
would generate a marker trait like such:
and implement it on each variant's generated struct.
It could have additional supertraits according to
#[evt(derive)]on the enum.