MCPcopy Create free account
hub / github.com/davidblewett/rure-python / CaptureNames

Class CaptureNames

regex/src/re_unicode.rs:752–752  ·  view source on GitHub ↗

An iterator over the names of all possible captures. `None` indicates an unnamed capture; the first element (capture 0, the whole matched region) is always unnamed. `'r` is the lifetime of the compiled regular expression.

Source from the content-addressed store, hash-verified

750///
751/// `'r` is the lifetime of the compiled regular expression.
752pub struct CaptureNames<'r>(::std::slice::Iter<'r, Option<String>>);
753
754impl<'r> Iterator for CaptureNames<'r> {
755 type Item = Option<&'r str>;

Callers 1

capture_namesMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected