zng::undo

Trait UndoSelect

source
pub trait UndoSelect {
    // Required method
    fn include(&mut self, timestamp: DInstant) -> bool;
}
Expand description

Selects actions to undo or redo.

Required Methods§

source

fn include(&mut self, timestamp: DInstant) -> bool

Called for each undo or redo action from the last item in the stack and back.

The timestamp is the moment the item was pushed in the undo stack, if this function is called for UndoOp::Redo it will not be more recent than the next action.

Implementations on Foreign Types§

source§

impl UndoSelect for u32

source§

fn include(&mut self, _: DInstant) -> bool

Implementors§