pub struct SearchHit {
pub path: PathBuf,
pub line: u64,
pub text: String,
}Expand description
One matching line.
Fields§
§path: PathBuf§line: u641-based, as editors and rg count.
text: StringThe line, shortened for display by snippet.
Trait Implementations§
impl Eq for SearchHit
impl StructuralPartialEq for SearchHit
Auto Trait Implementations§
impl Forget for SearchHit
impl Freeze for SearchHit
impl Move for SearchHit
impl RefUnwindSafe for SearchHit
impl Send for SearchHitwhere
RawVecInner: Send,
impl Sync for SearchHitwhere
RawVecInner: Sync,
impl Unpin for SearchHit
impl UnsafeUnpin for SearchHit
impl UnwindSafe for SearchHitwhere
RawVecInner: UnwindSafe,
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.