pub fn match1_vec<'a, 'b>(&'a self, input: &'b str) -> Vec<Option<&'b str>> {
        let mut result = Vec::new();
        let m: regress::Match = self.find(input).expect("Failed to match");
        result.push(Some(&input[m.range()]));
        for cr in m.captures {
            result.push(cr.map(|r| &input[r]));
        }
        result
    }
/// Match against a string, returning the match as a Vec containing None
/// for unmatched groups, or the matched strings.
Match against a string, returning the match as a Vec containing None
for unmatched groups, or the matched strings.
Match against a string returning the match as a Vec containing None for unmatched groups or the matched strings .
pub fn match1_vec<'a, 'b>(&'a self, input: &'b str) -> Vec<Option<&'b str>> {
        let mut result = Vec::new();
        let m: regress::Match = self.find(input).expect("Failed to match");
        result.push(Some(&input[m.range()]));
        for cr in m.captures {
            result.push(cr.map(|r| &input[r]));
        }
        result
    }
pub fn match1_vec < ' a , ' b > ( & ' a self , input : & ' b str ) -> Vec < Option < & ' b str > > { let mut result = Vec :: new ( ) ; let m : regress :: Match = self . find ( input ) . expect ( " " ) ; result . push ( Some ( & input [ m . range ( ) ] ) ) ; for cr in m . captures { result . push ( cr . map ( | r | & input [ r ] ) ) ; } result }
Match against a string, returning the match as a Vec containing None
for unmatched groups, or the matched strings.
Match against a string returning the match as a Vec containing None for unmatched groups or the matched strings .
&'a self
input
&'b str