News for hackers. Stuff that matters.
Re:Getting Past C by rustmemcpy on Tuesday January 03, 2017 @11:38PM (#13315719)
How would a self-referential object work in Rust in that case? The move or copy constructor could not be a simple memcpy.

The self-reference would point to the old object. See this for an example: http://ideone.com/sEFtbN

Re:Getting Past C by Manishearth on Wednesday January 04, 2017 @12:22AM (#13315872)
https://github.com/Kimundi/owning-ref-rs exists, but basically you just don't do intrusive datastructures on the stack in rust.

(Intrusive datastructures on the heap are doable with some tricks.)

They're not very essential so it works out.

Re:Getting Past C by sirclueless on Tuesday January 03, 2017 @11:55PM (#13315786)
See steveklabnik's detailed answers elsewhere in this thread, but the short answer is that you can't write this data type in Rust.