DEV Community

Cover image for Reminder on 'borrowing' and 'moving' in Rust
artydev
artydev

Posted on

Reminder on 'borrowing' and 'moving' in Rust

Juste a reminder:

Just aanother note:

Assignment (let y = x) moves ownership by default, unless the type implements the Copy trait, in which case the value is copied instead.

Top comments (0)