The Rust Programming Language Forum
Stable way to prevent moving out of a type
help
marcianx
April 24, 2016, 4:10am
3
Relatedly, there's this recently-posted neat trick to make an object not movable:
show post in topic
Related Topics
Topic
Replies
Views
Activity
Incomplete mini-guide to self-reference (non-movable objects)
tutorials
1
2368
January 12, 2023
"drop-move": a crate to support moving out of drop
announcements
1
486
March 30, 2021
Cannot move, behind a mutable reference
5
1391
January 2, 2022
Prevent drop at compile time
help
8
3562
January 12, 2023
Moving out of a type implementing Drop
help
5
3188
May 14, 2020