pub struct FiniteAutomaton<S: Alphabet> { /* private fields */ }
Expand description
Finite automaton over the given alphabet.
Implementations§
Source§impl<S: Alphabet> FiniteAutomaton<S>
impl<S: Alphabet> FiniteAutomaton<S>
pub fn to_matcher(&self) -> Matcher<'_, S>
pub fn into_matcher(self) -> Matcher<'static, S>
pub fn matches<I>(&self, symbols: impl IntoIterator<Item = I>) -> boolwhere
I: Borrow<S>,
Trait Implementations§
Source§impl<S: Clone + Alphabet> Clone for FiniteAutomaton<S>
impl<S: Clone + Alphabet> Clone for FiniteAutomaton<S>
Source§fn clone(&self) -> FiniteAutomaton<S>
fn clone(&self) -> FiniteAutomaton<S>
Returns a copy 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<S> Freeze for FiniteAutomaton<S>
impl<S> RefUnwindSafe for FiniteAutomaton<S>where
S: RefUnwindSafe,
impl<S> Send for FiniteAutomaton<S>where
S: Send,
impl<S> Sync for FiniteAutomaton<S>where
S: Sync,
impl<S> Unpin for FiniteAutomaton<S>where
S: Unpin,
impl<S> UnwindSafe for FiniteAutomaton<S>where
S: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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