into_variant 0.3.0

Easily convert your types into the corresponding enum variant
Documentation
1
2
3
4
5
6
error: into_variant requires variants to have a single field; multiple fields found
       help: you can skip a variant by annotating it with `#[into_variant(skip)]`
 --> tests_error/tuple_variant.rs:7:8
  |
7 |     Foo(Foo, Foo),
  |        ^^^^^^^^^^