2 ms·
Kinda but: trait Copy: Clone {} Copy is nearly always done by memcpy/memmove. When Copy is invoked it won't use the `Clone::clone` method: https://is.gd/2
by hornetblack 10y ago
Kinda but:
trait Copy: Clone {}
Copy is nearly always done by memcpy/memmove. When Copy is invoked it won't use the `Clone::clone` method: https://is.gd/2hMyNP https://is.gd/2hMyNP.
i.e. Clone is always explicit.
Added: Essentially Copy is the same as a move, but the original value is still valid.