#[non_exhaustive]pub struct DetectedTable {
pub bbox: BoundingBox,
pub cells: Vec<TableCell>,
pub rows: usize,
pub columns: usize,
pub confidence: f64,
pub header_rows: usize,
}Expand description
A detected table with cells, rows, and columns.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.bbox: BoundingBoxBounding box of the entire table
cells: Vec<TableCell>All cells in the table (row-major order)
rows: usizeNumber of rows
columns: usizeNumber of columns
confidence: f64Confidence score (0.0 to 1.0)
header_rows: usizeLeading header rows (0 until header detection runs; Task 8).
Implementations§
Source§impl DetectedTable
impl DetectedTable
Sourcepub fn new(
bbox: BoundingBox,
cells: Vec<TableCell>,
rows: usize,
columns: usize,
) -> Self
pub fn new( bbox: BoundingBox, cells: Vec<TableCell>, rows: usize, columns: usize, ) -> Self
Creates a new detected table.
Sourcepub fn column_count(&self) -> usize
pub fn column_count(&self) -> usize
Returns the number of columns.
Trait Implementations§
Source§impl Clone for DetectedTable
impl Clone for DetectedTable
Source§fn clone(&self) -> DetectedTable
fn clone(&self) -> DetectedTable
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DetectedTable
impl RefUnwindSafe for DetectedTable
impl Send for DetectedTable
impl Sync for DetectedTable
impl Unpin for DetectedTable
impl UnsafeUnpin for DetectedTable
impl UnwindSafe for DetectedTable
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