This file includes Pattern
s' data structures and implementations.
CompiledPattern | A CompiledPattern is a Pattern whose RegEx has been compiled or,
in the case that the PatternType is raw, whose expression has been
RegEx escaped and then compiled (as RegEx).
|
Pattern | The Pattern struct represents an uncompiled pattern. Patterns
are essentially RegEx searches; given an expression, they theoretically
will match text. Note that in order for patterns to actually match text,
they must first be compiled. (See CompiledPattern ).
|
PatternMatch | PatternMatch es are what CompiledPattern s output when they encounter
text that matches. A PatternMatch contains an excerpt of the match.
|
PatternKind | PatternKind denotes the type of a pattern. Its two variants, RegEx
and Raw , denote the type of compilation and matching to perform.
|