0 votes
in Rust by
Does Rust include move constructors?

1 Answer

0 votes
by

No, the values of all types in Rust are moved via memcpy. It moves everything that doesn’t have a copy constructor or doesn’t implement the copy trait.

...