top | item 42675966

(no title)

lightingthedark | 1 year ago

Rust moves aren't quite the same as C++ moves, you can think of them more like a memcpy where the destructor (if there is one) doesn't get run on the original location. This means you can move an immutable object, the object itself doesn't have to do anything to be moved.

discuss

order

No comments yet.