fn format_match(r: &regress::Match, input: &str) -> String {
    let mut result = input[r.range()].to_string();
    for cg in r.captures.iter() {
        result.push(',');
        if let Some(cg) = cg {
            result.push_str(&input[cg.clone()])
        }
    }
    result
}
/// Format a Match by inserting commas between all capture groups.
Format a Match by inserting commas between all capture groups.
Format a Match by inserting commas between all capture groups .
fn format_match(r: &regress::Match, input: &str) -> String {
    let mut result = input[r.range()].to_string();
    for cg in r.captures.iter() {
        result.push(',');
        if let Some(cg) = cg {
            result.push_str(&input[cg.clone()])
        }
    }
    result
}
fn format_match ( r : & regress :: Match , input : & str ) -> String { let mut result = input [ r . range ( ) ] . to_string ( ) ; for cg in r . captures . iter ( ) { result . push ( ',' ) ; if let Some ( cg ) = cg { result . push_str ( & input [ cg . clone ( ) ] ) } } result }
Format a Match by inserting commas between all capture groups.
Format a Match by inserting commas between all capture groups .
r
&regress::Match
input
&str