Skip to content

EasyConceptOwnership, borrowing and lifetimes

What is the difference between move and copy?

What a good answer covers

Assigning a non-Copy type moves ownership and invalidates the source. Types implementing Copy, such as integers, are bitwise duplicated and both stay usable.

More on Ownership, borrowing and lifetimes

Flashcards for this topic