pub struct LineMatcher { /* private fields */ }Expand description
Matches lines whose 1-indexed number falls in a set of merged ranges.
Implementations§
Source§impl LineMatcher
impl LineMatcher
Sourcepub fn from_selector(sel: &Selector) -> Self
pub fn from_selector(sel: &Selector) -> Self
Build from a Selector::LineNumbers. Panics on other variants.
Trait Implementations§
Source§impl Matcher for LineMatcher
impl Matcher for LineMatcher
fn match_line(&mut self, line: &Line) -> MatchInfo
Auto Trait Implementations§
impl Freeze for LineMatcher
impl RefUnwindSafe for LineMatcher
impl Send for LineMatcher
impl Sync for LineMatcher
impl Unpin for LineMatcher
impl UnsafeUnpin for LineMatcher
impl UnwindSafe for LineMatcher
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