pub struct TurnContinuation { /* private fields */ }Expand description
The per-turn state a compaction respawn must NOT reset (T2-2). A fold is
“no new user item, same logical turn” — so every counter that bounds that
turn has to cross it. Reconstructing a Turn from Default here is what let
max_turns be defeated by the very scenario it exists for.
INVARIANT: every per-turn safety counter survives a compaction respawn.
Enforced by max_turns_is_enforced_across_a_compaction and
three_folds_with_progress_do_not_exhaust_the_streak.
Trait Implementations§
Source§impl Debug for TurnContinuation
impl Debug for TurnContinuation
Source§impl Default for TurnContinuation
impl Default for TurnContinuation
Source§fn default() -> TurnContinuation
fn default() -> TurnContinuation
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TurnContinuation
impl RefUnwindSafe for TurnContinuation
impl Send for TurnContinuation
impl Sync for TurnContinuation
impl Unpin for TurnContinuation
impl UnsafeUnpin for TurnContinuation
impl UnwindSafe for TurnContinuation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more