Struct gpg_tui::widget::list::StatefulList[][src]

pub struct StatefulList<T> {
    pub items: Vec<T>,
    pub state: ListState,
}
Expand description

List widget with TUI controlled states.

Fields

items: Vec<T>

List items (states).

state: ListState

State that can be modified by TUI.

Implementations

Constructs a new instance of StatefulList.

Construct a new StatefulList with given items.

Returns the selected item.

Selects the next item.

Selects the previous item.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

The error type produced by a failed conversion.

Convert the given value into an approximately equivalent representation.

The error type produced by a failed conversion.

Convert the subject into an approximately equivalent representation.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Approximate the subject with the default scheme.

Approximate the subject with a specific scheme.

Approximate the subject to a given type with the default scheme.

Approximate the subject to a given type with a specific scheme.

Convert the subject to a given type.

Attempt to convert the subject to a given type.

Attempt a value conversion of the subject to a given type.

Performs the conversion.

Performs the conversion.

The error type produced by a failed conversion.

Convert the given value into the subject type.

The type returned in the event of a conversion error.

Performs the conversion.

The error type produced by a failed conversion.

Convert the subject into the destination type.

The type returned in the event of a conversion error.

Performs the conversion.

The error type produced by a failed conversion.

Convert the given value into an exactly equivalent representation.

The error type produced by a failed conversion.

Convert the subject into an exactly equivalent representation.