pub enum Pattern {
}
Expand description
A Regular Expression Pattern
Variants§
Sequence(Vec<Pattern>)
Sequence of patterns
Text(String)
Text
Raw(String)
Raw (unprocessed text), used internally
Or(Vec<Pattern>)
Alternative
Many
Repetition
Digit
Digit
Letter
Letter,
WordCharacter
Word characters
InputStart
Start of line/input
InputEnd
End of line/input
Not(Box<Pattern>)
Negation
Any
Anything
Named
Named group
Implementations§
Source§impl Pattern
impl Pattern
Sourcepub fn and_either<PL: PatternList>(self, branches: PL) -> Self
pub fn and_either<PL: PatternList>(self, branches: PL) -> Self
Chain an alternative
Sourcepub fn and_maybe_many<T: Into<Pattern>>(self, exp: T) -> Self
pub fn and_maybe_many<T: Into<Pattern>>(self, exp: T) -> Self
Append a pattern zero or more times
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Pattern
impl RefUnwindSafe for Pattern
impl Send for Pattern
impl Sync for Pattern
impl Unpin for Pattern
impl UnwindSafe for Pattern
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