Going back to C++ after writing Rust and getting confused why function inputs that are changed aren't marked as mut.