Struct actions::Chain[][src]

pub struct Chain<Action> where
    Action: Merge
{ /* fields omitted */ }

A chain of actions.

Can be used to store 'macros'.

Methods

impl<Action: Merge> Chain<Action>
[src]

Create a new chain of actions.

Merges as much actions in the chain as possible.

For example, if the chain contains an action that cancels out the previous action, both of the actions can be removed from the chain.

Push an action to the chain.

The amount of action currently in the chain.

The actions in the chain.

Trait Implementations

impl<Action: Clone> Clone for Chain<Action> where
    Action: Merge
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<Action> From<Vec<Action>> for Chain<Action> where
    Action: Merge
[src]

Performs the conversion.

impl<Action> Into<Vec<Action>> for Chain<Action> where
    Action: Merge
[src]

Performs the conversion.

Auto Trait Implementations

impl<Action> Send for Chain<Action> where
    Action: Send

impl<Action> Sync for Chain<Action> where
    Action: Sync