Struct redo::record::Queue[][src]

pub struct Queue<'a, C: Command, F> { /* fields omitted */ }
Expand description

Wraps a record and gives it batch queue functionality.

Examples

let mut record = Record::default();
let mut queue = record.queue();
queue.apply(Add('a'));
queue.apply(Add('b'));
queue.apply(Add('c'));
assert_eq!(queue.target(), "");
queue.commit()?;
assert_eq!(record.target(), "abc");

Implementations

Queues an apply action.

Queues an undo action.

Queues a redo action.

Applies the queued commands.

Errors

If an error occurs, it stops applying the commands and returns the error.

Cancels the queued actions.

Returns a queue.

Returns a checkpoint.

Returns a reference to the target.

Trait Implementations

Performs the conversion.

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

Performs the conversion.

Performs the conversion.

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.