pub struct BufferAdapter<'a> { /* private fields */ }
Expand description
Minimal adapter that just uses DataView for everything
Implementations§
Trait Implementations§
Source§impl<'a> DataProvider for BufferAdapter<'a>
impl<'a> DataProvider for BufferAdapter<'a>
Source§fn get_row(&self, index: usize) -> Option<Vec<String>>
fn get_row(&self, index: usize) -> Option<Vec<String>>
Get a single row by index
Returns None if the index is out of bounds
Source§fn get_column_names(&self) -> Vec<String>
fn get_column_names(&self) -> Vec<String>
Get the column names/headers
Source§fn get_row_count(&self) -> usize
fn get_row_count(&self) -> usize
Get the total number of rows
Source§fn get_column_count(&self) -> usize
fn get_column_count(&self) -> usize
Get the total number of columns
Source§fn get_visible_rows(&self, start: usize, count: usize) -> Vec<Vec<String>>
fn get_visible_rows(&self, start: usize, count: usize) -> Vec<Vec<String>>
Get multiple rows for efficient rendering
This is an optimization to avoid multiple get_row calls
Source§fn get_column_widths(&self) -> Vec<usize>
fn get_column_widths(&self) -> Vec<usize>
Get the display width for each column
Used for rendering column widths in the TUI
Source§fn get_cell_value(&self, row: usize, col: usize) -> Option<String>
fn get_cell_value(&self, row: usize, col: usize) -> Option<String>
Get a single cell value
Returns None if row or column index is out of bounds
Source§fn get_display_value(&self, row: usize, col: usize) -> String
fn get_display_value(&self, row: usize, col: usize) -> String
Get a display-formatted cell value
Returns empty string if indices are out of bounds
Source§fn get_column_type(&self, _column_index: usize) -> DataType
fn get_column_type(&self, _column_index: usize) -> DataType
Get the data type of a specific column
This should be cached/determined at load time, not computed on each call
Source§fn get_column_types(&self) -> Vec<DataType>
fn get_column_types(&self) -> Vec<DataType>
Get data types for all columns
Returns a vector where index corresponds to column index
Auto Trait Implementations§
impl<'a> Freeze for BufferAdapter<'a>
impl<'a> !RefUnwindSafe for BufferAdapter<'a>
impl<'a> Send for BufferAdapter<'a>
impl<'a> Sync for BufferAdapter<'a>
impl<'a> Unpin for BufferAdapter<'a>
impl<'a> !UnwindSafe for BufferAdapter<'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> 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