4 ms·
I'm not an expert, but I will say it may be easier to avoid an over/underflow with: https://doc.rust-lang.org/std/primitive.u32.html#method.saturating_add https
by mustache_kimono 5y ago
I'm not an expert, but I will say it may be easier to avoid an over/underflow with: https://doc.rust-lang.org/std/primitive.u32.html#method.saturating_add https://doc.rust-lang.org/std/primitive.u32.html#method.satu...
And to check if one has occurred with: https://doc.rust-lang.org/std/primitive.u32.html#method.checked_add https://doc.rust-lang.org/std/primitive.u32.html#method.chec...