pub enum MatchRecognizePattern {
Symbol(MatchRecognizeSymbol),
Exclude(MatchRecognizeSymbol),
Permute(Vec<MatchRecognizeSymbol>),
Concat(Vec<MatchRecognizePattern>),
Group(Box<MatchRecognizePattern>),
Alternation(Vec<MatchRecognizePattern>),
Repetition(Box<MatchRecognizePattern>, RepetitionQuantifier, bool),
}Expand description
A row-pattern expression inside PATTERN ( ... ).
Variants§
Symbol(MatchRecognizeSymbol)
A single symbol, e.g. A, ^, $.
Exclude(MatchRecognizeSymbol)
An exclusion {- <pattern> -}.
Permute(Vec<MatchRecognizeSymbol>)
PERMUTE(<symbol>, ...).
Concat(Vec<MatchRecognizePattern>)
Concatenation, e.g. A B C.
Group(Box<MatchRecognizePattern>)
A parenthesized sub-pattern ( <pattern> ).
Alternation(Vec<MatchRecognizePattern>)
Alternation, e.g. A | B | C.
Repetition(Box<MatchRecognizePattern>, RepetitionQuantifier, bool)
A quantified sub-pattern, e.g. A*, A+, A?, A{1,3}. The bool is reluctant (a trailing
?, e.g. A*?, which prefers the fewest matches).
Trait Implementations§
Source§impl Clone for MatchRecognizePattern
impl Clone for MatchRecognizePattern
Source§fn clone(&self) -> MatchRecognizePattern
fn clone(&self) -> MatchRecognizePattern
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MatchRecognizePattern
impl Debug for MatchRecognizePattern
Source§impl Display for MatchRecognizePattern
impl Display for MatchRecognizePattern
impl Eq for MatchRecognizePattern
Source§impl Hash for MatchRecognizePattern
impl Hash for MatchRecognizePattern
Source§impl PartialEq for MatchRecognizePattern
impl PartialEq for MatchRecognizePattern
Source§fn eq(&self, other: &MatchRecognizePattern) -> bool
fn eq(&self, other: &MatchRecognizePattern) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MatchRecognizePattern
Auto Trait Implementations§
impl Freeze for MatchRecognizePattern
impl RefUnwindSafe for MatchRecognizePattern
impl Send for MatchRecognizePattern
impl Sync for MatchRecognizePattern
impl Unpin for MatchRecognizePattern
impl UnsafeUnpin for MatchRecognizePattern
impl UnwindSafe for MatchRecognizePattern
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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