pub trait UndoRedoCommand {
// Required methods
fn name(&self) -> &str;
fn do_it(&mut self);
fn undo_it(&mut self);
}Expand description
A named, reversible operation.
Implement this trait to participate in the shared undo/redo stack.
The do_it / undo_it methods are called by UndoBuffer on redo and
undo respectively.