Struct gpg_tui::widget::table::StatefulTable[][src]

pub struct StatefulTable<T: Clone> {
    pub default_items: Vec<T>,
    pub items: Vec<T>,
    pub state: TableState,
}
Expand description

Table widget with TUI controlled states.

Fields

default_items: Vec<T>

Default table items (for search functionality).

items: Vec<T>

Table items.

state: TableState

Table state.

Implementations

Constructs a new instance of StatefulTable.

Construct a new StatefulTable with given items.

Returns the selected item.

Selects the next item.

Selects the previous item.

Sets the scrolling state of the table row depending on the given direction and offset.

Resets the items state.

Resets the scroll state.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.