It would be helpful to have a couple code samples with a lot of casts in them. It is really hard to judge the ergonomics of any of these options looking at only a single conversion…
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Pre-RFC: Add explicitly-named numeric conversion APIs | 26 | 4927 | March 11, 2020 | |
[Pre-RFC]: Adding conversion to/from integer on enums with #[repr(i/u*)]
|
16 | 7268 | March 25, 2019 | |
Pre-RFC enum from integer | 24 | 14037 | March 25, 2019 | |
Addition to rust's int | 13 | 1125 | August 27, 2023 | |
Post-increment method on numeric types? | 9 | 813 | March 4, 2024 |