pub struct SpatialTableDetector {
pub config: TableDetectionConfig,
}Expand description
Backward compatibility: Table detector wrapper.
Fields§
§config: TableDetectionConfigConfiguration for this detector.
Implementations§
Source§impl SpatialTableDetector
impl SpatialTableDetector
Sourcepub fn with_config(config: TableDetectionConfig) -> Self
pub fn with_config(config: TableDetectionConfig) -> Self
Create a new detector with config.
Sourcepub fn detect_tables(&self, spans: &[TextSpan]) -> Vec<DetectedTable>
pub fn detect_tables(&self, spans: &[TextSpan]) -> Vec<DetectedTable>
Detect tables (wrapper).
Sourcepub fn detect_tables_hybrid(
&self,
spans: &[TextSpan],
lines: &[PathContent],
) -> Vec<ExtractedTable>
pub fn detect_tables_hybrid( &self, spans: &[TextSpan], lines: &[PathContent], ) -> Vec<ExtractedTable>
Detect tables using visual lines and text (hybrid).
Auto Trait Implementations§
impl Freeze for SpatialTableDetector
impl RefUnwindSafe for SpatialTableDetector
impl Send for SpatialTableDetector
impl Sync for SpatialTableDetector
impl Unpin for SpatialTableDetector
impl UnsafeUnpin for SpatialTableDetector
impl UnwindSafe for SpatialTableDetector
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> 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