Skip to main content

HistoryProvider

Trait HistoryProvider 

Source
pub trait HistoryProvider {
    // Required methods
    fn undo(&mut self, ctx: &mut CommandContext<'_>);
    fn redo(&mut self, ctx: &mut CommandContext<'_>);
    fn push(&mut self, command: Box<dyn Command>, ctx: &mut CommandContext<'_>);
    fn clear(&mut self);
}

Required Methods§

Source

fn undo(&mut self, ctx: &mut CommandContext<'_>)

Source

fn redo(&mut self, ctx: &mut CommandContext<'_>)

Source

fn push(&mut self, command: Box<dyn Command>, ctx: &mut CommandContext<'_>)

Source

fn clear(&mut self)

Implementors§