Closed bbaldino closed 2 years ago
I agree that TryFrom
/TryInto
should be implemented. This is also what stdlib does. Thanks for pointing this out. I will gladly merge a PR that adds these implementations as long as it covers all types.
I think stdlib avoids implementing From
/Into
conversions for usize
/isize
to ensure portability between platforms of all address sizes. I think it's best to follow std here as well.
Cool, I'll take a shot at that.
I was trying to convert a ux type to usize and saw that it wasn't implemented, is that intentional perhaps due to its lack of a fixed size? I was thinking at least TryInto/TryFrom usize would make sense.