Ad
  • Custom User Avatar

    Rust is a pass by value language so really this is only mutating the function local value.
    As long as the input variable is not a reference there's no risk of mutating the passed in value from the perspective of the caller.