pub struct TextOptions {
pub layout: bool,
pub y_tolerance: f64,
pub y_density: f64,
pub x_density: f64,
}Expand description
Options for layout-aware text extraction.
Fields§
§layout: boolIf true, use layout-aware extraction (detect blocks and reading order). If false, simple concatenation of words by spatial order.
y_tolerance: f64Vertical tolerance for clustering words into the same line (in points).
y_density: f64Maximum vertical gap between lines to group into the same block (in points).
x_density: f64Minimum horizontal gap to detect column boundaries (in points).
Trait Implementations§
Source§impl Clone for TextOptions
impl Clone for TextOptions
Source§fn clone(&self) -> TextOptions
fn clone(&self) -> TextOptions
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 TextOptions
impl Debug for TextOptions
Auto Trait Implementations§
impl Freeze for TextOptions
impl RefUnwindSafe for TextOptions
impl Send for TextOptions
impl Sync for TextOptions
impl Unpin for TextOptions
impl UnsafeUnpin for TextOptions
impl UnwindSafe for TextOptions
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