pub trait Table:
Debug
+ Send
+ Sync {
// Required methods
fn get_cell(
&self,
row: usize,
column: &str,
) -> Result<LiteralValue, ExcelError>;
fn get_column(&self, column: &str) -> Result<Box<dyn Range>, ExcelError>;
fn clone_box(&self) -> Box<dyn Table>;
// Provided methods
fn columns(&self) -> Vec<String> { ... }
fn data_height(&self) -> usize { ... }
fn has_headers(&self) -> bool { ... }
fn has_totals(&self) -> bool { ... }
fn headers_row(&self) -> Option<Box<dyn Range>> { ... }
fn totals_row(&self) -> Option<Box<dyn Range>> { ... }
fn data_body(&self) -> Option<Box<dyn Range>> { ... }
}Required Methods§
fn get_cell(&self, row: usize, column: &str) -> Result<LiteralValue, ExcelError>
fn get_column(&self, column: &str) -> Result<Box<dyn Range>, ExcelError>
fn clone_box(&self) -> Box<dyn Table>
Provided Methods§
Sourcefn data_height(&self) -> usize
fn data_height(&self) -> usize
Number of data rows (excluding headers/totals)
Sourcefn has_headers(&self) -> bool
fn has_headers(&self) -> bool
Whether the table has a header row
Sourcefn has_totals(&self) -> bool
fn has_totals(&self) -> bool
Whether the table has a totals row
Sourcefn headers_row(&self) -> Option<Box<dyn Range>>
fn headers_row(&self) -> Option<Box<dyn Range>>
Headers row as a 1xW range
Sourcefn totals_row(&self) -> Option<Box<dyn Range>>
fn totals_row(&self) -> Option<Box<dyn Range>>
Totals row as a 1xW range, if present
Trait Implementations§
Source§impl Table for Box<dyn Table>
impl Table for Box<dyn Table>
fn get_cell(&self, r: usize, c: &str) -> Result<LiteralValue, ExcelError>
fn get_column(&self, c: &str) -> Result<Box<dyn Range>, ExcelError>
Source§fn data_height(&self) -> usize
fn data_height(&self) -> usize
Number of data rows (excluding headers/totals)
Source§fn has_headers(&self) -> bool
fn has_headers(&self) -> bool
Whether the table has a header row
Source§fn has_totals(&self) -> bool
fn has_totals(&self) -> bool
Whether the table has a totals row