pub struct DocumentFact {
pub text: String,
pub locator: DocumentLocator,
pub line_start: usize,
pub line_end: usize,
}Expand description
One exact text fact retained from a supported document.
Fields§
§text: StringExtracted UTF-8 text for this fact.
locator: DocumentLocatorExact parser-relative locator for the text.
line_start: usizeOne-based first line in the emitted document text.
line_end: usizeOne-based last occupied line in the emitted document text.
Trait Implementations§
Source§impl Clone for DocumentFact
impl Clone for DocumentFact
Source§fn clone(&self) -> DocumentFact
fn clone(&self) -> DocumentFact
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 DocumentFact
impl Debug for DocumentFact
impl Eq for DocumentFact
Source§impl PartialEq for DocumentFact
impl PartialEq for DocumentFact
Source§fn eq(&self, other: &DocumentFact) -> bool
fn eq(&self, other: &DocumentFact) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DocumentFact
Auto Trait Implementations§
impl Freeze for DocumentFact
impl RefUnwindSafe for DocumentFact
impl Send for DocumentFact
impl Sync for DocumentFact
impl Unpin for DocumentFact
impl UnsafeUnpin for DocumentFact
impl UnwindSafe for DocumentFact
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.