of variables? Can I move a variable to a globally stored lambda and it'll remain there after my current scope ends ?
So i can skip allocations on copy?
Move does not change lifetime. Lifetime is dependent on scope. Move just renders the value moved from to a state where it can be safely destroyed or reassigned.
Обсуждают сегодня