zng::undo

Trait UndoSelector

source
pub trait UndoSelector: Sealed {
    type Select: UndoSelect;

    // Required method
    fn select(self, op: UndoOp) -> Self::Select;
}
Expand description

Represents a type that can select actions for undo or redo once.

This API is sealed, only core crate can implement it.

See UNDO::undo_select for more details.

Required Associated Types§

source

type Select: UndoSelect

Selection collector.

Required Methods§

source

fn select(self, op: UndoOp) -> Self::Select

Start selecting action for the op.

Implementations on Foreign Types§

source§

impl UndoSelector for u32

source§

impl UndoSelector for Duration

source§

type Select = UndoSelectInterval

source§

fn select(self, op: UndoOp) -> <Duration as UndoSelector>::Select

Implementors§

source§

impl UndoSelector for DInstant

source§

type Select = UndoSelectLtEq