pub(crate) struct TableCustomRetroStyle<'a> {
pub(crate) state: TableState,
table: Table<'a>,
pub(crate) rows: Vec<RowData>,
pub(crate) headers: Vec<String>,
}Fields§
§state: TableState§table: Table<'a>§rows: Vec<RowData>§headers: Vec<String>Implementations§
Source§impl<'a> TableCustomRetroStyle<'a>
impl<'a> TableCustomRetroStyle<'a>
pub fn new( headers: &[String], rows: Vec<RowData>, selected_row: usize, constraints: Vec<Constraint>, ) -> Self
pub fn render(&mut self, frame: &mut Frame<'_>, area: Rect)
fn get_rows_color( rows: &[RowData], selected_row: usize, ) -> impl IntoIterator<Item = Row<'a>>
pub fn update_table_color_background(&mut self, selected_row: usize)
Auto Trait Implementations§
impl<'a> Freeze for TableCustomRetroStyle<'a>
impl<'a> RefUnwindSafe for TableCustomRetroStyle<'a>
impl<'a> Send for TableCustomRetroStyle<'a>
impl<'a> Sync for TableCustomRetroStyle<'a>
impl<'a> Unpin for TableCustomRetroStyle<'a>
impl<'a> UnwindSafe for TableCustomRetroStyle<'a>
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