pub struct Matcher { /* private fields */ }Expand description
Pattern matcher for grep searches
Implementations§
Source§impl Matcher
impl Matcher
Sourcepub fn new(
pattern: &str,
case_insensitive: bool,
word_regexp: bool,
fixed_strings: bool,
only_matching: bool,
invert_match: bool,
) -> Result<Self>
pub fn new( pattern: &str, case_insensitive: bool, word_regexp: bool, fixed_strings: bool, only_matching: bool, invert_match: bool, ) -> Result<Self>
Create a new matcher from a pattern string
Auto Trait Implementations§
impl Freeze for Matcher
impl RefUnwindSafe for Matcher
impl Send for Matcher
impl Sync for Matcher
impl Unpin for Matcher
impl UnsafeUnpin for Matcher
impl UnwindSafe for Matcher
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