pub struct UndoStack<S> { /* private fields */ }Expand description
Generic undo stack for storing state snapshots.
Stores clones of state snapshots. Popped snapshots are returned directly since they are already detached.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for UndoStack<S>
impl<S> RefUnwindSafe for UndoStack<S>where
S: RefUnwindSafe,
impl<S> Send for UndoStack<S>where
S: Send,
impl<S> Sync for UndoStack<S>where
S: Sync,
impl<S> Unpin for UndoStack<S>where
S: Unpin,
impl<S> UnsafeUnpin for UndoStack<S>
impl<S> UnwindSafe for UndoStack<S>where
S: UnwindSafe,
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