Struct undo::Merged

source ·
pub struct Merged<R, C1: Command<R> + 'static, C2: Command<R> + 'static> { /* private fields */ }
Expand description

The result of merging two commands.

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

Implementations§

Merges cmd1 and cmd2 into a single command.

Returns the two merged commands.

Trait Implementations§

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
Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.