Struct undo::Merger[][src]

pub struct Merger<R, C: Command<R> + 'static> { /* fields omitted */ }

A command wrapper which always merges with itself.

This wrapper has an id of u32::max_value.

Methods

impl<R, C: Command<R> + 'static> Merger<R, C>
[src]

Returns a new merger command.

Returns the inner command.

Trait Implementations

impl<R, C: Command<R> + 'static> From<C> for Merger<R, C>
[src]

Performs the conversion.

impl<R, C: Command<R> + 'static> Command<R> for Merger<R, C>
[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, C: Command<R> + 'static> Debug for Merger<R, C>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<R, C> Send for Merger<R, C>

impl<R, C> Sync for Merger<R, C>