pub type ShouldChangeUndoStack<T> = Rc<dyn Fn(Option<&T>, &T) -> bool>;
Called when checking whether a value change should be pushed onto the undo stack.
pub struct ShouldChangeUndoStack<T> { /* private fields */ }