Crate actions

source ·
Expand description

Actions

actions is a library that helps you getting control over the state of you program. Using actions allows you to

  • Undo and redo actions!
  • Create macro’s which merge multiple actions into one chain of actions!

Structs

A ‘chain’ of actions.
The Timeline wraps around a State and makes it accessible by using actions only.

Enums

An errortype that is used by any function in the actions-library that can return an error.
The result of getting a inverse of an action.
The result of trying to merge two actions.

Traits

Trait that enables actions to merge actions.
State is a trait that should be implemented for any datatype that describes the state of your application.