pub struct Interface<'a> { /* private fields */ }
Expand description

A terminal interface (TUI) which efficiently handles updates and layout.

Implementations

A new interface using the specified output device.

A new interface using the specified output device and configuration options.

The interface’s cursor position. Reflects the latest state, even if staged changes have not yet been applied to the interface.

The interface’s line identifiers. Reflects the latest state, even if staged changes have not yet been applied to the interface.

The interface’s lines. Reflects the latest state, even if staged changes have not yet been applied to the interface.

Retrieves several line references by their identifiers.

Retrieves a line reference by its identifier.

Retrieves a mutable line reference by its identifier.

Determines the specified line’s index in this interface.

Sets the cursor position. The cursor update will be staged until changes are applied.

Hides the cursor. The cursor update will be staged until changes are applied.

Updates whether to allow optimizations when rendering.

Appends a new line to this interface. The line addition will be staged until changes are applied. Note that the returned line may have other changes staged against it for the same update.

Inserts a new line in this interface at a specified index. The line addition will be staged until changes are applied. Note that the returned line may have other changes staged against it for the same update.

Removes a line with the specified identifier from the interface. The line removal will be staged until changes are applied.

Removes a line from this interface at the specified index. The line removal will be staged until changes are applied.

Move a segment from one line to the specified index in another.

Whether this line or its segments have any staged changes.

Applies any staged changes for this interface and its constituent lines and segments. Returns the rendered-layout.

Advances the cursor to the end of the interface.

Trait Implementations

Formats the value using the given formatter. 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

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.