Re:Rust: Dropping heavy things in another thread can make yo...
by rcxdude on Saturday May 30, 2020 @05:35PM
(#23364974)
There's also no guarantee the object won't be moved elsewhere, including into a context which never gets freed (for example, you can construct mem::forget using entirely safe code by forming a cycle of reference-counted boxes). That said, Rust has support for such a concept through the Pin trait (which essentially guarantees an object will not get moved until it is 'Unpinned').
[ Parent
| on HN ]
There are no comments on this comment yet.