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.
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
Auto Trait Implementations
impl<T> RefUnwindSafe for StatefulTable<T> where
T: RefUnwindSafe,
impl<T> Send for StatefulTable<T> where
T: Send,
impl<T> Sync for StatefulTable<T> where
T: Sync,
impl<T> Unpin for StatefulTable<T> where
T: Unpin,
impl<T> UnwindSafe for StatefulTable<T> where
T: UnwindSafe,
Blanket Implementations
type Err = NoError
type Err = NoError
The error type produced by a failed conversion.
pub fn approx_from(
src: Src
) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
pub fn approx_from(
src: Src
) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
Convert the given value into an approximately equivalent representation.
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
The error type produced by a failed conversion.
pub fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
pub fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
Convert the subject into an approximately equivalent representation.
Mutably borrows from an owned value. Read more
Approximate the subject to a given type with the default scheme.
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
Approximate the subject to a given type with a specific scheme.
Attempt to convert the subject to a given type.
type Err = NoError
type Err = NoError
The error type produced by a failed conversion.
pub fn value_from(src: Src) -> Result<Src, <Src as ValueFrom<Src>>::Err>
pub fn value_from(src: Src) -> Result<Src, <Src as ValueFrom<Src>>::Err>
Convert the given value into an exactly equivalent representation.
type Err = <Dst as ValueFrom<Src>>::Err
type Err = <Dst as ValueFrom<Src>>::Err
The error type produced by a failed conversion.
pub fn value_into(self) -> Result<Dst, <Src as ValueInto<Dst>>::Err>
pub fn value_into(self) -> Result<Dst, <Src as ValueInto<Dst>>::Err>
Convert the subject into an exactly equivalent representation.