Move Semantics (Rust)

A move transfers ownership of a value from one variable to another. After a move the original variable is invalidated, so using it is a compile-time error.…