pub struct Extraction {
pub text: String,
pub lines: Vec<u32>,
}Expand description
An Extraction is the text that extract returns, with the line of the
file, counted from 1, of each of its lines.
Fields§
§text: StringThe text, each line with its newline.
lines: Vec<u32>The line of the file of each line of text, in order.
Implementations§
Source§impl Extraction
impl Extraction
Sourcepub fn range(&self) -> Option<Range<u32>>
pub fn range(&self) -> Option<Range<u32>>
range returns the lines of the file that the extraction holds as
one run of whole lines with no line left out, from its first line to
before its end, or None when the extraction is empty or leaves out
a line of that run, such as a marker or a line between two regions of
one name.
Trait Implementations§
Source§impl Clone for Extraction
impl Clone for Extraction
Source§impl Debug for Extraction
impl Debug for Extraction
impl Eq for Extraction
Source§impl PartialEq for Extraction
impl PartialEq for Extraction
impl StructuralPartialEq for Extraction
Auto Trait Implementations§
impl Forget for Extraction
impl Freeze for Extraction
impl Move for Extraction
impl RefUnwindSafe for Extraction
impl Send for Extraction
impl Sync for Extraction
impl Unpin for Extraction
impl UnsafeUnpin for Extraction
impl UnwindSafe for Extraction
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.