![]() Previously for enums using the `Variants::Single` layout, the variant index was being confused with its discriminant. For example, in the case of `enum E { A = 1 }`. Use `discriminant_for_variant` to avoid the issue. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |
![]() Previously for enums using the `Variants::Single` layout, the variant index was being confused with its discriminant. For example, in the case of `enum E { A = 1 }`. Use `discriminant_for_variant` to avoid the issue. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |