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
2448
January 12, 2023
"drop-move": a crate to support moving out of drop
announcements
1
573
March 30, 2021
Cannot move, behind a mutable reference
5
1921
January 2, 2022
Prevent calling drop()
code review
7
1936
June 22, 2022
Prevent drop at compile time
help
8
4407
January 12, 2023