Struct undo::Merged[][src]

pub struct Merged<R, C1: Command<R> + 'static, C2: Command<R> + 'static> { /* fields omitted */ }

The result of merging two commands.

The merge! macro can be used for convenience when merging commands.

Methods

impl<R, C1: Command<R> + 'static, C2: Command<R> + 'static> Merged<R, C1, C2>
[src]

Merges cmd1 and cmd2 into a single command.

The id of the command will be the cmd1s id.

Returns the two merged commands.

Trait Implementations

impl<R, C1: Command<R> + 'static, C2: Command<R> + 'static> Command<R> for Merged<R, C1, C2>
[src]

Applies the command on the receiver and returns Ok if everything went fine, and Err if something went wrong. Read more

Restores the state of the receiver as it was before the command was applied and returns Ok if everything went fine, and Err if something went wrong. Read more

Reapplies the command on the receiver and return Ok if everything went fine, and Err if something went wrong. Read more

Used for automatic merging of commands. Read more

impl<R, C1: Command<R> + 'static, C2: Command<R> + 'static> Debug for Merged<R, C1, C2>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<R, C1, C2> Send for Merged<R, C1, C2>

impl<R, C1, C2> Sync for Merged<R, C1, C2>