If you want to check for overflow, then you can use the methods that explicitly check for overflow:
https://doc.rust-lang.org/std/primitive.u32.html#method.chec...
So this is not an issue at all.
https://doc.rust-lang.org/std/primitive.u32.html#method.chec...
So this is not an issue at all.
For comparison, in Swift normal arithmetic operations check for overflow.
[1] https://doc.rust-lang.org/src/alloc/vec/mod.rs.html#1773