StaticnewCreates a new CapturePattern with the given name and pattern.
Gets the name of the capture.
Gets the inner pattern.
Returns true if the pattern matches the haystack.
Returns true if the Display of the matcher is complex, i.e. contains nested patterns or other complex structures that require its text rendering to be surrounded by grouping parentheses.
Returns a string representation of an object.
Hash code for use in Maps/Sets.
A pattern that captures a match with a name.
Corresponds to the Rust
CapturePatternstruct in capture_pattern.rs