Move semantic(s)
C++ std::move and Rust's move are different. std::move leaves behind the origin in a valid (but "undefined", whatever that is) state, usable and later to be deconstructed. Rust leaves the origin destroyed and unusable. If you try to use the origin after the move,…