pub struct Match<'a> {
pub id: u64,
pub text: &'a str,
pub value: Cow<'a, str>,
pub score: u32,
pub kind: &'a MatchKind,
pub ranges: &'a [(usize, usize)],
pub line: Option<u32>,
pub column: Option<u32>,
}Fields§
§id: u64§text: &'a str§value: Cow<'a, str>§score: u32§kind: &'a MatchKind§ranges: &'a [(usize, usize)]Half-open UTF-8 byte ranges in text.
line: Option<u32>1-based line of the first hit (grep only).
column: Option<u32>1-based byte column of the first hit (grep only).
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for Match<'a>
impl<'a> Freeze for Match<'a>
impl<'a> Move for Match<'a>
impl<'a> RefUnwindSafe for Match<'a>where
String: RefUnwindSafe,
impl<'a> Send for Match<'a>
impl<'a> Sync for Match<'a>
impl<'a> Unpin for Match<'a>
impl<'a> UnsafeUnpin for Match<'a>where
&'a str: UnsafeUnpin,
String: UnsafeUnpin,
&'a MatchKind: UnsafeUnpin,
&'a [(usize, usize)]: UnsafeUnpin,
impl<'a> UnwindSafe for Match<'a>where
&'a str: UnwindSafe,
String: UnwindSafe,
&'a MatchKind: UnwindSafe,
&'a [(usize, usize)]: 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