pub enum TransitionType {
Range(CharRange),
NotRange(CharRange),
Epsilon,
}Expand description
The type of a transition in a nondeterministic finite automaton. Every transition in an automaton is labeled with a type that determines the behavior of the transition. The type can be a character range, a negated character range, or an epsilon transition. For a character range transition, the transition is taken if the input character is in the range. For a negated character range transition, the transition is taken if the input character is not in the range. An epsilon transition is taken without consuming any input.
Variants§
Range(CharRange)
A transition that is taken if the input character is in the given range.
NotRange(CharRange)
A transition that is taken if the input character is not in the given range.
Epsilon
An epsilon transition that is taken without consuming any input.
Implementations§
Trait Implementations§
Source§impl Clone for TransitionType
impl Clone for TransitionType
Source§fn clone(&self) -> TransitionType
fn clone(&self) -> TransitionType
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 moreSource§impl Debug for TransitionType
impl Debug for TransitionType
Source§impl Display for TransitionType
impl Display for TransitionType
Source§impl Hash for TransitionType
impl Hash for TransitionType
Source§impl PartialEq for TransitionType
impl PartialEq for TransitionType
impl Copy for TransitionType
impl Eq for TransitionType
impl StructuralPartialEq for TransitionType
Auto Trait Implementations§
impl Freeze for TransitionType
impl RefUnwindSafe for TransitionType
impl Send for TransitionType
impl Sync for TransitionType
impl Unpin for TransitionType
impl UnwindSafe for TransitionType
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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