pub struct TextToken {
pub text: String,
pub normalized_text: String,
pub bounds: Rect,
pub page_index: usize,
pub column_index: usize,
pub line_index: usize,
pub trailing_space: bool,
}Expand description
Extracted text token with geometric and structural metadata.
Fields§
§text: StringRaw extracted text of the token.
normalized_text: StringNFKD normalized text used for sequence matching and diffing.
bounds: RectCropBox-normalized bounding box in PDF user points.
page_index: usize0-indexed source page index.
column_index: usizeSpatial column partition index.
line_index: usizeVisual baseline line index within the column.
trailing_space: boolTrue if whitespace originally followed this token in the document.
Implementations§
Trait Implementations§
impl StructuralPartialEq for TextToken
Auto Trait Implementations§
impl Freeze for TextToken
impl RefUnwindSafe for TextToken
impl Send for TextToken
impl Sync for TextToken
impl Unpin for TextToken
impl UnsafeUnpin for TextToken
impl UnwindSafe for TextToken
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