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.
The self-reference would point to the old object. See this for an example: http://ideone.com/sEFtbN