enum_convert 0.2.0

A Rust procedural macro library for deriving automatic conversions between enum variants
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
error[E0599]: no variant or associated item named `NonExistent` found for enum `Source` in the current scope
  --> tests/enum_from/compile_fail/variant/invalid_source_variant.rs:10:25
   |
3  |   enum Source {
   |   ----------- variant or associated item `NonExistent` not found for this enum
...
8  |   #[enum_from(Source)]
   |  _____________-
9  | | enum Target {
10 | |     #[enum_from(Source::NonExistent)] // Invalid variant name
   | |                        -^^^^^^^^^^^ variant or associated item not found in `Source`
   | |________________________|
   |