Module matcher

Source

Structs§

AlwaysMatch
This matcher always succeeds
AsciiWhitespaceMatcher
This matcher accepts only ASCII whitespace characters, and is always anchored, i.e. it will never match input that starts with a non-ASCII whitespace character.
CaptureInfo
MatchInfo
MatchResult
RegexMatcher
This matcher is used to match a single regular expression
RegexSetMatcher
RegexSetSearcher
SmartMatcher
This is a combination, jack-of-all trades matcher, which is executes a set of smaller matches to form a large one. Some parts of the “pattern” are known statically, while others rely on runtime variable bindings and expression evaluation, hence “smart”. This is the default matcher that is used any time match blocks or substitutions are present in a pattern.
SubstringMatcher
This matcher searches for a given substring in the input buffer, with some control over how the search is conducted.
SubstringSetBuilder
SubstringSetMatcher
This matcher is a variation on [SubstringMatcher] that searches for a match of any of multiple substrings in the input buffer.

Enums§

MatchAll
MatchAny
MatchType
SimpleMatcher
A matcher which has no dynamic context (variables, etc.)

Traits§

DynMatcher
DynMatcherMut
Matcher
This trait is used for match patterns which are pure, i.e. they have no effect on the current [MatchContext].
MatcherMut
This trait is used for match patterns which have side effects on the current [MatchContext] when successful.

Type Aliases§

AnyMatcher
AnyMatcherMut