pub enum UndoBehavior {
    Ignore,
    Full,
    Coalesce,
}
Expand description

Specifies how the (previously executed) operation should be treated in the Undo stack.

Variants

Ignore

Operation is not affecting the LineBuffers content and should be ignored

e.g. the undo commands themselves are not stored in the undo stack

Full

The operation is one logical unit of work that should be stored in the undo stack

Coalesce

The operation is a single operation that should be best coalesced in logical units such as words

e.g. insertion of characters by typing

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.