pub struct Table {
pub bbox: BBox,
pub cells: Vec<Cell>,
pub rows: Vec<Vec<Cell>>,
pub columns: Vec<Vec<Cell>>,
}Expand description
A detected table.
Fields§
§bbox: BBoxBounding box enclosing the entire table.
cells: Vec<Cell>All cells in the table.
rows: Vec<Vec<Cell>>Cells organized into rows (top-to-bottom, left-to-right within each row).
columns: Vec<Vec<Cell>>Cells organized into columns (left-to-right, top-to-bottom within each column).
Implementations§
Source§impl Table
impl Table
Sourcepub fn accuracy(&self) -> f64
pub fn accuracy(&self) -> f64
Percentage of cells with non-empty text (0.0 to 1.0).
Returns 0.0 if the table has no cells.
Sourcepub fn whitespace(&self) -> f64
pub fn whitespace(&self) -> f64
Average ratio of whitespace characters in cell text (0.0 to 1.0, lower is better).
Only considers cells that have text. Returns 0.0 if no cells have text.
Sourcepub fn quality(&self) -> TableQuality
pub fn quality(&self) -> TableQuality
Combined quality metrics for the table.
Trait Implementations§
impl StructuralPartialEq for Table
Auto Trait Implementations§
impl Freeze for Table
impl RefUnwindSafe for Table
impl Send for Table
impl Sync for Table
impl Unpin for Table
impl UnsafeUnpin for Table
impl UnwindSafe for Table
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