Skip to main content

RowSlice

Type Alias RowSlice 

Source
pub type RowSlice<'a, 'b> = &'b [TableCell<'a>];
Expand description

A row slice reference passed sequentially to callbacks during iteration.

Trait Implementations§

Source§

impl RowSliceExt for RowSlice<'_, '_>

Source§

fn get_primary(&self, col_index: usize) -> Result<&str, TableError>

Extracts the primary text at the specified column index.
Source§

fn get_hover(&self, col_index: usize) -> Result<&str, TableError>

Extracts the hover/alternate text at the specified column index.
Source§

fn parse_primary<T>(&self, col_index: usize) -> Result<T, TableError>
where T: FromStr, <T as FromStr>::Err: Display,

Parses the primary text at the specified column index into type T.
Source§

fn parse_hover<T>(&self, col_index: usize) -> Result<T, TableError>
where T: FromStr, <T as FromStr>::Err: Display,

Parses the hover text at the specified column index into type T.