News for hackers. Stuff that matters.
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:

  enum StateMachine<PinnedState: ?Move> {
      InitialState,
      State1(String),
      State2(Box<PinnedState>),
      TerminalState,
  }

There are no comments on this comment yet.