[][src]Module ieql::common::pattern

This file includes Patterns' data structures and implementations.

Structs

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

PatternMatches are what CompiledPatterns output when they encounter text that matches. A PatternMatch contains an excerpt of the match.

Enums

PatternKind

PatternKind denotes the type of a pattern. Its two variants, RegEx and Raw, denote the type of compilation and matching to perform.