4 ms·
> And Rust ints can overflow. There are provisions to do math that won't overflow or that can saturate. For example https://doc.rust-lang.org/std/primitive.u32
by jimktrains2 5y ago
> And Rust ints can overflow.
There are provisions to do math that won't overflow or that can saturate. For example https://doc.rust-lang.org/std/primitive.u32.html#method.checked_sub https://doc.rust-lang.org/std/primitive.u32.html#method.chec...
- progval 5y agoSure, but it's less convenient to use.