pub struct TableRenderContextBuilder { /* private fields */ }Expand description
Builder for TableRenderContext to make construction easier
Implementations§
Source§impl TableRenderContextBuilder
impl TableRenderContextBuilder
pub fn new() -> Self
pub fn row_count(self, count: usize) -> Self
pub fn visible_rows(self, indices: Vec<usize>, data: Vec<Vec<String>>) -> Self
pub fn columns(self, headers: Vec<String>, widths: Vec<u16>) -> Self
pub fn pinned_columns(self, indices: Vec<usize>) -> Self
pub fn selection(self, row: usize, column: usize, mode: SelectionMode) -> Self
pub fn row_viewport(self, range: Range<usize>) -> Self
pub fn sort_state(self, state: Option<SortState>) -> Self
pub fn display_options(self, show_row_numbers: bool, app_mode: AppMode) -> Self
pub fn filter(self, pattern: Option<String>, case_insensitive: bool) -> Self
pub fn dimensions(self, width: u16, height: u16) -> Self
pub fn build(self) -> TableRenderContext
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TableRenderContextBuilder
impl RefUnwindSafe for TableRenderContextBuilder
impl Send for TableRenderContextBuilder
impl Sync for TableRenderContextBuilder
impl Unpin for TableRenderContextBuilder
impl UnwindSafe for TableRenderContextBuilder
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 more