Struct kaolinite::event::EditStack[][src]

pub struct EditStack {
    pub patch: Vec<Event>,
    pub done: Vec<Vec<Event>>,
    pub undone: Vec<Vec<Event>>,
}
Expand description

Event stack is a struct that handles events

Fields

patch: Vec<Event>

Where the current smaller editing events are stored

done: Vec<Vec<Event>>

This is where events that have been done are

undone: Vec<Vec<Event>>

This is where events that have been undone are

Implementations

Adds an event to the current patch

Commit the patch to the done stack

Returns the last performed event and moves it around

Returns the last undone event and moves it around

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. 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

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.