On Thu, Oct 24, 2013 at 3:33 PM, Igor Bukanov <i...@mir2.org> wrote: > Does it imply that in Rust any type can be moved even the one that > have custom destructor? Thus it is not possible to have, for example, > a stack-allocated struct that reference itself via a pointer? >
Every value can be moved, and it's always equivalent to a shallow `memcpy`. It's not possible to have a safe unboxed type depending on the location it's placed in memory.
_______________________________________________ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev