Crate redo [] [src]

An undo-redo library with static dispatch and manual command merging. It uses the command pattern where the user modifies a receiver by applying commands on it.

The library has currently two data structures that can be used to modify the receiver:

  • A stack that can push and pop commands to modify the receiver.
  • A record that can roll the state of the receiver forwards and backwards.

Structs

Commands

Iterator over commands.

Error

The error type.

Group

A group of either stacks or records.

GroupBuilder

Builder for a group.

Record

The command record.

RecordBuilder

Builder for a record.

Stack

The command stack.

Enums

Signal

The signals sent when the record or the receiver changes.

Traits

Command

Base functionality for all commands.