pub struct ChangeSequence { /* private fields */ }
Expand description

Keeps track of a run of changes and allows reasoning about the cursor position and the extent of the screen that the sequence will affect. This is useful for example when implementing something like a LineEditor where you don’t want to take control over the entire surface but do want to be able to emit a dynamically sized output relative to the cursor position at the time that the editor is invoked.

Implementations

Returns the cursor position, (x, y).

Returns the total number of rows affected

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.

Should always be Self

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.