pub trait TableExt {
// Required methods
fn rows(&self) -> &[CTTableRow];
fn row_count(&self) -> usize;
fn col_count(&self) -> usize;
fn cell(&self, row: usize, col: usize) -> Option<&CTTableCell>;
fn to_text_grid(&self) -> Vec<Vec<String>>;
fn text(&self) -> String;
}Expand description
Extension trait for CTTable providing convenience methods.
Required Methods§
Sourcefn rows(&self) -> &[CTTableRow]
fn rows(&self) -> &[CTTableRow]
Get all rows in the table.
Sourcefn cell(&self, row: usize, col: usize) -> Option<&CTTableCell>
fn cell(&self, row: usize, col: usize) -> Option<&CTTableCell>
Get a cell by row and column index (0-based).
Sourcefn to_text_grid(&self) -> Vec<Vec<String>>
fn to_text_grid(&self) -> Vec<Vec<String>>
Get all cell text as a 2D vector.