Rust isn’t functional; it’s just dressed like it. The ownership rules allow the compiler to prove that mut self -> Self functions and &mut self -> () methods are wholly equivalent, and therefore eliminate the need to construct a new object and destroy the old.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Rust isn’t functional; it’s just dressed like it. The ownership rules allow the compiler to prove that
mut self -> Self
functions and&mut self -> ()
methods are wholly equivalent, and therefore eliminate the need to construct a new object and destroy the old.