Rust: Clone vs Copy
One of the strength of Rust is memory management. This also leads to compiler errors related to move or borrow
When we assign an existing variable to new variable, two things can happen.
Either the data is copied - in that case we can use both old and the new variable without worry. 1
Or data is moved - now we can only use the new variable, as the old variable is “out of scope”. But there is a way to access both the new and old variables. But in that case we have to explicit.