News for hackers. Stuff that matters.
Re:Rust has a static “garbage collector” by nine_k on Wednesday October 10, 2018 @10:56PM (#18190697)
I think the typical way to move from one lifetime to another, especially for a borrowed object, is copying?
Re:Rust has a static “garbage collector” by idubrov on Wednesday October 10, 2018 @11:30PM (#18190813)
Cloning is not always possible (performance reasons, non-cloneable data, etc) and would not necessarily remove lifetime (for example, it could be a struct, defined somewhere else, with a lifetime parameter).