Startlingly, the standard arithmetic operators in Rust can give us the wrong answers—and that can be fatal. To avoid getting your bits chopped off, use checked arithmetic instead.
All tagged the rust spellbook
Startlingly, the standard arithmetic operators in Rust can give us the wrong answers—and that can be fatal. To avoid getting your bits chopped off, use checked arithmetic instead.