zng_ext_undo

Trait RedoAction

Source
pub trait RedoAction: Send + Any {
    // Required methods
    fn info(&mut self) -> Arc<dyn UndoInfo>;
    fn redo(self: Box<Self>) -> Box<dyn UndoAction>;
}
Expand description

Represents a single redo action.

Required Methods§

Source

fn info(&mut self) -> Arc<dyn UndoInfo>

Gets display info about the action that will be redone.

Source

fn redo(self: Box<Self>) -> Box<dyn UndoAction>

Redo action and returns a UndoAction that undoes it.

Implementors§