pub struct LayoutComplexity {
pub is_complex: bool,
pub pages_with_tables: Vec<u32>,
pub pages_with_columns: Vec<u32>,
}Expand description
Layout complexity analysis result.
Callers can use this to decide whether the extracted markdown is reliable or whether the PDF should be routed to an OCR pipeline instead.
Fields§
§is_complex: boolTrue if any page has tables or multi-column text.
pages_with_tables: Vec<u32>1-indexed pages where table borders were detected (rect count > 6).
pages_with_columns: Vec<u32>1-indexed pages where 2+ text columns were detected.
Trait Implementations§
Source§impl Clone for LayoutComplexity
impl Clone for LayoutComplexity
Source§fn clone(&self) -> LayoutComplexity
fn clone(&self) -> LayoutComplexity
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 LayoutComplexity
impl Debug for LayoutComplexity
Source§impl Default for LayoutComplexity
impl Default for LayoutComplexity
Source§fn default() -> LayoutComplexity
fn default() -> LayoutComplexity
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LayoutComplexity
impl RefUnwindSafe for LayoutComplexity
impl Send for LayoutComplexity
impl Sync for LayoutComplexity
impl Unpin for LayoutComplexity
impl UnsafeUnpin for LayoutComplexity
impl UnwindSafe for LayoutComplexity
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