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.

Related questions

0 votes
asked Dec 28, 2023 in Rust by Robin
0 votes
0 votes
asked Dec 28, 2023 in Rust by Robin
...