pub struct TableData<T> {
pub rows: Vec<T>,
pub columns: Vec<ColumnDef<T>>,
pub title: Option<String>,
pub borders: bool,
pub highlight_symbol: Option<String>,
pub highlight: bool,
}Expand description
Generic table data structure
Holds the data and configuration for rendering a table widget. Use the builder pattern methods to construct a table incrementally.
Fields§
§rows: Vec<T>Rows of data to display
columns: Vec<ColumnDef<T>>Column definitions
title: Option<String>Optional table title
borders: boolWhether to show borders
highlight_symbol: Option<String>Highlight symbol for selection
highlight: boolWhether to highlight on hover/selection
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for TableData<T>
impl<T> !RefUnwindSafe for TableData<T>
impl<T> !Send for TableData<T>
impl<T> !Sync for TableData<T>
impl<T> Unpin for TableData<T>where
T: Unpin,
impl<T> !UnwindSafe for TableData<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more