pub struct TableConfig<'a, T> {
pub items: Vec<&'a T>,
pub selected_index: usize,
pub expanded_index: Option<usize>,
pub columns: &'a [Box<dyn Column<T>>],
pub sort_column: &'a str,
pub sort_direction: SortDirection,
pub title: String,
pub area: Rect,
pub get_expanded_content: Option<Box<dyn Fn(&T) -> Vec<(String, Style)> + 'a>>,
pub is_active: bool,
}Fields§
§items: Vec<&'a T>§selected_index: usize§expanded_index: Option<usize>§columns: &'a [Box<dyn Column<T>>]§sort_column: &'a str§sort_direction: SortDirection§title: String§area: Rect§get_expanded_content: Option<Box<dyn Fn(&T) -> Vec<(String, Style)> + 'a>>§is_active: boolAuto Trait Implementations§
impl<'a, T> Freeze for TableConfig<'a, T>
impl<'a, T> !RefUnwindSafe for TableConfig<'a, T>
impl<'a, T> !Send for TableConfig<'a, T>
impl<'a, T> !Sync for TableConfig<'a, T>
impl<'a, T> Unpin for TableConfig<'a, T>
impl<'a, T> UnsafeUnpin for TableConfig<'a, T>
impl<'a, T> !UnwindSafe for TableConfig<'a, 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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreCreates a shared type from an unshared type.