Y
Hacker News
new
|
ask
|
show
|
jobs
by
nine_k
2806 days ago
I think the typical way to move from one lifetime to another, especially for a borrowed object, is copying?
1 comments
idubrov
2806 days ago
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).
link