The Rust Programming Language Forum
How to avoid explicitly cloning a variable that is moved to a closure?
help
LiveDuo
December 27, 2024, 5:59am
7
Turns out this is possible with arena allocators. Opened a new topic here:
show post in topic
Related topics
Topic
Replies
Views
Activity
Moving context into several closures?
help
14
614
October 23, 2021
Good way to move out of captured variable in closure
help
8
116
July 2, 2025
Gtk-rs use of rc without having to clone variable
help
7
79
May 29, 2025
Copying closure within closure
help
7
77
March 21, 2025
Automatic cloning for closures
13
5169
January 12, 2023