News for hackers. Stuff that matters.
Re:Go is Google's language, not ours by tene on Wednesday May 22, 2019 @12:13PM (#19982698)
Assuming struct A has a reference to struct B, memcpy is a fine way to move struct A, and struct B cannot be moved while borrowed.

Here's an example I put together demonstrating this: https://play.rust-lang.org/?version=stable&mode=debug&editio...

There are no comments on this comment yet.