pub struct RipgrepLinesGroup {
pub lines: Vec<usize>,
pub context_start: usize,
pub context_end: usize,
pub content: String,
}Expand description
Result of ripgrep_lines — one entry per merged context window.
Fields§
§lines: Vec<usize>1-indexed line numbers of the matching lines in this window.
context_start: usize1-indexed start line of the window (inclusive).
context_end: usize1-indexed end line of the window (inclusive).
content: StringJoined content of the window.
Trait Implementations§
Source§impl Clone for RipgrepLinesGroup
impl Clone for RipgrepLinesGroup
Source§fn clone(&self) -> RipgrepLinesGroup
fn clone(&self) -> RipgrepLinesGroup
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 moreAuto Trait Implementations§
impl Freeze for RipgrepLinesGroup
impl RefUnwindSafe for RipgrepLinesGroup
impl Send for RipgrepLinesGroup
impl Sync for RipgrepLinesGroup
impl Unpin for RipgrepLinesGroup
impl UnsafeUnpin for RipgrepLinesGroup
impl UnwindSafe for RipgrepLinesGroup
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