zng_ext_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§

type Select = u32

Source§

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

Source§

impl UndoSelector for DInstant

Source§

type Select = UndoSelectLtEq

Source§

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

Source§

impl UndoSelector for Duration

Source§

type Select = UndoSelectInterval

Source§

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

Implementors§