You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rust 1.66 was just released, along with Explicit discriminants on enums with fields. The given example does not compile when adding bincode (2.0.0-rc.2) derive macros to the enum:
Step 1 would be to implement this in virtue: issue
After that we should see how serde implements this. With normal discriminants serde does not actually respect the value. e.g.
enumFoo{A = 5,B = 3,}
Will still be encoded as 0 and 1 (See #592 for the reason why). I suspect this new syntax will also not actually respect the values, but instead use the index.
Rust 1.66 was just released, along with Explicit discriminants on enums with fields. The given example does not compile when adding bincode (2.0.0-rc.2) derive macros to the enum:
The text was updated successfully, but these errors were encountered: