pub struct TableCell {
pub text: String,
pub bbox: Option<[f32; 4]>,
pub start_row: usize,
pub start_col: usize,
pub row_span: usize,
pub col_span: usize,
pub column_header: bool,
pub row_header: bool,
pub row_section: bool,
}Expand description
One table cell as a first-class object (#240) — the Rust counterpart of
docling’s TableCell: its text, page geometry, grid rectangle and header
roles. Produced by the PDF TableFormer paths from the predicted OTSL
structure; bbox is [l, t, r, b] in page points with a top-left origin.
Fields§
§text: String§bbox: Option<[f32; 4]>[l, t, r, b], page points, top-left origin; None without geometry.
start_row: usizeAnchor grid position (0-based row/column offsets).
start_col: usize§row_span: usizeSpan extents (≥ 1); the covered grid positions repeat the cell’s text
in Table::rows.
col_span: usize§column_header: boolOTSL ched — a column-header cell.
row_header: boolOTSL rhed — a row-header cell.
row_section: boolOTSL srow — a section-row cell.
Trait Implementations§
impl StructuralPartialEq for TableCell
Auto Trait Implementations§
impl Freeze for TableCell
impl RefUnwindSafe for TableCell
impl Send for TableCell
impl Sync for TableCell
impl Unpin for TableCell
impl UnsafeUnpin for TableCell
impl UnwindSafe for TableCell
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more