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

Class CaptureNames

regex/src/re_bytes.rs:796–796  ·  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

794///
795/// `'r` is the lifetime of the compiled regular expression.
796pub struct CaptureNames<'r>(::std::slice::Iter<'r, Option<String>>);
797
798impl<'r> Iterator for CaptureNames<'r> {
799 type Item = Option<&'r str>;

Callers 1

capture_namesMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected