pub struct TableBorder {Show 14 fields
pub bbox: BoundingBox,
pub index: Option<u32>,
pub level: Option<String>,
pub x_coordinates: Vec<f64>,
pub x_widths: Vec<f64>,
pub y_coordinates: Vec<f64>,
pub y_widths: Vec<f64>,
pub rows: Vec<TableBorderRow>,
pub num_rows: usize,
pub num_columns: usize,
pub is_bad_table: bool,
pub is_table_transformer: bool,
pub previous_table: Option<Box<TableBorder>>,
pub next_table: Option<Box<TableBorder>>,
}Expand description
Grid-based table structure defined by row/column coordinates.
Fields§
§bbox: BoundingBoxBounding box
index: Option<u32>Global index
level: Option<String>Nesting level
x_coordinates: Vec<f64>X-coordinates of column boundaries (N+1 for N columns)
x_widths: Vec<f64>Widths of column boundary lines
y_coordinates: Vec<f64>Y-coordinates of row boundaries (M+1 for M rows)
y_widths: Vec<f64>Widths of row boundary lines
rows: Vec<TableBorderRow>Table rows
num_rows: usizeNumber of rows
num_columns: usizeNumber of columns
is_bad_table: boolWhether this table has structural problems
is_table_transformer: boolWhether this came from a transformer model
previous_table: Option<Box<TableBorder>>Previous table in cross-page chain
next_table: Option<Box<TableBorder>>Next table in cross-page chain
Trait Implementations§
Source§impl Clone for TableBorder
impl Clone for TableBorder
Source§fn clone(&self) -> TableBorder
fn clone(&self) -> TableBorder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TableBorder
impl Debug for TableBorder
Source§impl<'de> Deserialize<'de> for TableBorder
impl<'de> Deserialize<'de> for TableBorder
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TableBorder
impl RefUnwindSafe for TableBorder
impl Send for TableBorder
impl Sync for TableBorder
impl Unpin for TableBorder
impl UnsafeUnpin for TableBorder
impl UnwindSafe for TableBorder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more