pub struct StrMatcher<'a> { /* private fields */ }
Implementations§
Source§impl<'a> StrMatcher<'a>
impl<'a> StrMatcher<'a>
pub fn new(target: &'a str, match_case: MatchCase) -> Self
pub fn case_sensitive(target: &'a str) -> Self
pub fn ascii_case_insensitive(target: &'a str) -> Self
pub fn target(&self) -> &'a str
pub fn match_case(&self) -> MatchCase
pub fn last_match_result(&self) -> MatchResult
pub fn count(&self) -> usize
pub fn reset(&mut self)
pub fn reset_target(&mut self, target: &'a str)
pub fn peek_match(&mut self, next: char) -> MatchResult
pub fn update_match(&mut self, next: char) -> MatchResult
pub fn try_match(&mut self, next: char) -> MatchResult
Trait Implementations§
Source§impl<'a> Clone for StrMatcher<'a>
impl<'a> Clone for StrMatcher<'a>
Source§fn clone(&self) -> StrMatcher<'a>
fn clone(&self) -> StrMatcher<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a> Freeze for StrMatcher<'a>
impl<'a> RefUnwindSafe for StrMatcher<'a>
impl<'a> Send for StrMatcher<'a>
impl<'a> Sync for StrMatcher<'a>
impl<'a> Unpin for StrMatcher<'a>
impl<'a> UnwindSafe for StrMatcher<'a>
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