pub enum DocumentLocator {
Pdf {
page: usize,
text_start: usize,
text_end: usize,
},
Docx {
part: &'static str,
paragraph: usize,
run: usize,
text_start: usize,
text_end: usize,
},
}Expand description
Exact location of one extracted document text span.
Variants§
A text span in one one-based PDF page.
Fields
Docx
A text span in the admitted DOCX document part.
Fields
Trait Implementations§
Source§impl Clone for DocumentLocator
impl Clone for DocumentLocator
Source§fn clone(&self) -> DocumentLocator
fn clone(&self) -> DocumentLocator
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 DocumentLocator
impl Debug for DocumentLocator
Source§impl Display for DocumentLocator
impl Display for DocumentLocator
impl Eq for DocumentLocator
Source§impl PartialEq for DocumentLocator
impl PartialEq for DocumentLocator
Source§fn eq(&self, other: &DocumentLocator) -> bool
fn eq(&self, other: &DocumentLocator) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DocumentLocator
Auto Trait Implementations§
impl Freeze for DocumentLocator
impl RefUnwindSafe for DocumentLocator
impl Send for DocumentLocator
impl Sync for DocumentLocator
impl Unpin for DocumentLocator
impl UnsafeUnpin for DocumentLocator
impl UnwindSafe for DocumentLocator
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.