auto_enums 0.8.10

A library for to allow multiple return types by automatically generated enum.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// SPDX-License-Identifier: Apache-2.0 OR MIT

use auto_enums::enum_derive;

struct Foo<A>(A);

#[enum_derive(Transpose)]
enum Enum1<A, B> {
    //~^ ERROR `enum_derive(Transpose)` all fields need to be generics
    A(Foo<A>),
    B(B),
}

fn main() {}