Does a type that implements copy get moved if possible?

前端 未结 0 652
执念已碎
执念已碎 2020-12-20 17:15

If you pass a type into a function that is not a pointer type and it implements Copy, does Rust copy it only if necessary?

Here is some specific code:

         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题