pub trait Row {
// Required methods
fn cell(&self, col_index: usize) -> Option<TableCell<'_>>;
fn column_count(&self) -> usize;
}Expand description
A trait representing a single row in the table, permitting dynamic cell evaluation.
Required Methods§
fn cell(&self, col_index: usize) -> Option<TableCell<'_>>
fn column_count(&self) -> usize
Trait Implementations§
Source§impl RowSliceExt for dyn Row + '_
impl RowSliceExt for dyn Row + '_
Source§fn get_primary(&self, col_index: usize) -> Result<Cow<'_, str>, TableError>
fn get_primary(&self, col_index: usize) -> Result<Cow<'_, str>, TableError>
Extracts the primary text at the specified column index.
Source§fn get_hover(&self, col_index: usize) -> Result<Cow<'_, str>, TableError>
fn get_hover(&self, col_index: usize) -> Result<Cow<'_, str>, TableError>
Extracts the hover/alternate text at the specified column index.
Source§fn parse_primary<T>(&self, col_index: usize) -> Result<T, TableError>
fn parse_primary<T>(&self, col_index: usize) -> Result<T, TableError>
Parses the primary text at the specified column index into type
T.Source§fn parse_hover<T>(&self, col_index: usize) -> Result<T, TableError>
fn parse_hover<T>(&self, col_index: usize) -> Result<T, TableError>
Parses the hover text at the specified column index into type
T.Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".