Crate history_stack

Source
Expand description

A crate implementing generic history managers that can act as building blocks for transactional state and reversible computations

Structsยง

HistoryStack
A wrapper over a T that provides a primitive history mechanism by use of a stack of T. It can be pushed to or popped from to save the current value or pop out a previously saved value in LIFO (stack) order.
UndoStack
A structure which allows you to undo and redo changes based on saved states of T.