pub struct TableStructure {
pub header_row: Vec<bool>,
pub col_continuation: Vec<Vec<bool>>,
pub row_continuation: Vec<Vec<bool>>,
pub row_header: Vec<Vec<bool>>,
pub col_header: Vec<Vec<bool>>,
}Expand description
OTSL structure overlay for a Table, parallel to Table::rows.
Fields§
§header_row: Vec<bool>Per-row: true if the row’s non-empty cells are column headers
(emitted as <ched/> rather than <fcel/>).
col_continuation: Vec<Vec<bool>>Same shape as Table::rows; true where a cell continues a
horizontal span from its left neighbour (emitted as <lcel/>).
row_continuation: Vec<Vec<bool>>Same shape as Table::rows; true where a cell continues a
vertical span from the cell above (emitted as <ucel/>). Empty or all
false when the backend has no vertical spans (e.g. USPTO CALS).
row_header: Vec<Vec<bool>>Same shape as Table::rows; true where a non-empty cell is a row
header (emitted as <rhed/>) — a chart’s category column. Empty when
the table has no row headers.
col_header: Vec<Vec<bool>>Same shape as Table::rows; true where a cell is a column header
cell (an HTML <th>). When non-empty this per-cell grid supersedes the
per-row Self::header_row for <ched/> emission, matching docling’s
cell-level column_header flag; the chunker derives its header-row
count from it.
Trait Implementations§
Source§impl Clone for TableStructure
impl Clone for TableStructure
Source§fn clone(&self) -> TableStructure
fn clone(&self) -> TableStructure
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more