3 ms·
> Copy is a trait that is automatically implemented by the compiler (and cannot be manually overridden) that basically just says "semantically this type can be
by fooyc 12y ago
> Copy is a trait that is automatically implemented by the compiler (and cannot be manually overridden) that basically just says "semantically this type can be copied with memcpy", it doesn't actually control the runtime behaviour of =. (The phrasing in that section isn't as clear as it could be.)
That's a very good news. Indeed that section is not clear, it looks like user defined classes could implement the copy trait, which would be really bad.
Thanks for your answers.
- dbaupp 12y ago(BTW, I edited some more details about copy vs. move into my previous comment just after you replied.)