pub struct Matcher<'a, S: Alphabet> { /* private fields */ }
Expand description
Type implementing incremental matching against a finite automaton.
Implementations§
Source§impl<'a, S: Alphabet> Matcher<'a, S>
impl<'a, S: Alphabet> Matcher<'a, S>
pub fn next(&mut self, symbol: &S) -> Acceptance
pub fn next_iter<I>(
&mut self,
symbols: impl IntoIterator<Item = I>,
) -> Acceptancewhere
I: Borrow<S>,
pub fn regex(&self) -> &Regex<ApproximatelySimilarCanonical<S>>
Auto Trait Implementations§
impl<'a, S> Freeze for Matcher<'a, S>
impl<'a, S> RefUnwindSafe for Matcher<'a, S>where
S: RefUnwindSafe,
impl<'a, S> Send for Matcher<'a, S>
impl<'a, S> Sync for Matcher<'a, S>where
S: Sync,
impl<'a, S> Unpin for Matcher<'a, S>where
S: Unpin,
impl<'a, S> UnwindSafe for Matcher<'a, S>where
S: UnwindSafe + RefUnwindSafe,
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more