pub struct MatchInfo {
pub hit: bool,
pub spans: Vec<Range<usize>>,
pub col: Option<usize>,
}Expand description
Result of running a Matcher on a Line.
Fields§
§hit: boolDid this line hit?
spans: Vec<Range<usize>>Byte ranges to highlight (for regex matches).
col: Option<usize>Target column (1-indexed) for positional matches.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MatchInfo
impl RefUnwindSafe for MatchInfo
impl Send for MatchInfo
impl Sync for MatchInfo
impl Unpin for MatchInfo
impl UnsafeUnpin for MatchInfo
impl UnwindSafe for MatchInfo
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