pub struct ReadingOrderText {
pub mode: LayoutMode,
pub runs: Vec<TextRun>,
}Expand description
Output of read_in_logical_order: the run sequence plus the
flag that tells the caller which path produced them.
Fields§
§mode: LayoutMode§runs: Vec<TextRun>Implementations§
Source§impl ReadingOrderText
impl ReadingOrderText
Sourcepub fn flat_text(&self) -> String
pub fn flat_text(&self) -> String
Concatenate every run’s text with a space between them — the
reading-order analogue of
crate::reader::PdfTextExtraction::flat_text.
Trait Implementations§
Source§impl Clone for ReadingOrderText
impl Clone for ReadingOrderText
Source§fn clone(&self) -> ReadingOrderText
fn clone(&self) -> ReadingOrderText
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ReadingOrderText
impl Debug for ReadingOrderText
Source§impl PartialEq for ReadingOrderText
impl PartialEq for ReadingOrderText
Source§fn eq(&self, other: &ReadingOrderText) -> bool
fn eq(&self, other: &ReadingOrderText) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ReadingOrderText
Auto Trait Implementations§
impl Freeze for ReadingOrderText
impl RefUnwindSafe for ReadingOrderText
impl Send for ReadingOrderText
impl Sync for ReadingOrderText
impl Unpin for ReadingOrderText
impl UnsafeUnpin for ReadingOrderText
impl UnwindSafe for ReadingOrderText
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