News for hackers. Stuff that matters.
Re:Rust 1.45 by stefano_c on Friday July 17, 2020 @05:10AM (#23868694)
What would you suggest for replacing e.g. `u8 as usize`?
Re:Rust 1.45 by steveklabnik on Friday July 17, 2020 @08:12AM (#23869657)
For this one, you could use From/Into, because it cannot fail. For numerics that can fail, TryFrom/TryInto.

The numeric casts are the easy part of this.