6 ms·
The problem with self-references is that if you move the containing struct then the reference is now invalid. Pinning the object so it can’t move works around t
by pixel_fcker 5y ago
The problem with self-references is that if you move the containing struct then the reference is now invalid. Pinning the object so it can’t move works around this.
- antonin42 5y agoI don’t know enough about Rust I always think about passing these self referencing structure by reference in other languages.