pub struct LayoutDetector { /* private fields */ }Expand description
Layout detection component
Implementations§
Source§impl LayoutDetector
impl LayoutDetector
Sourcepub fn determine_reading_order(
&self,
sections: &[DocumentSection],
) -> RragResult<Vec<String>>
pub fn determine_reading_order( &self, sections: &[DocumentSection], ) -> RragResult<Vec<String>>
Determine reading order
Sourcepub fn detect_columns(&self, text: &str) -> RragResult<Option<ColumnLayout>>
pub fn detect_columns(&self, text: &str) -> RragResult<Option<ColumnLayout>>
Detect column layout
Auto Trait Implementations§
impl Freeze for LayoutDetector
impl RefUnwindSafe for LayoutDetector
impl Send for LayoutDetector
impl Sync for LayoutDetector
impl Unpin for LayoutDetector
impl UnwindSafe for LayoutDetector
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