Using Rust’s type system to do basic arithmetic

rust