Re:Go is Google's language, not ours
by damnyou on Wednesday May 22, 2019 @06:08PM
(#19986085)
Yes, every assignment of a non-Copy type is a move. (Copy types are basically primitive ones like ints, so not vectors etc.) The compiler prevents you from using the old variable at that point.
Since Rust always enforces that a move is a memcpy, a vector reallocation is just a realloc() like in C.
Since Rust always enforces that a move is a memcpy, a vector reallocation is just a realloc() like in C.