Re:Rust project goals: Immobile types and guaranteed destruc...
by 10000truths on Monday August 03, 2026 @03:03PM
(#49160061)
> I would highlight that there are many cases where you CAN move an object safely until a certain operation requires the object to "stay put" in place.
You could model this with a state machine enum where the "stay put" phase is a variant that accepts a !Move, like so:
You could model this with a state machine enum where the "stay put" phase is a variant that accepts a !Move, like so: