fn pattern_score_against_string_vector(
        &self,
        pattern_name: &String,
        compiled_pattern: &Pattern,
        strings: &Vec<String>,
    ) -> usize {
        strings
            .iter()
            .filter(|string| match compiled_pattern.match_against(string) {
                Some(matches) => {
                    // println!(
                    //     "{} matches => {:?}",
                    //     pattern_name,
                    //     matches.get(pattern_name)
                    // );
                    matches.len() > 0
                }
                None => false,
            })
            .count()
    }
/// calculates the pattern score against several strings
/// the score is the count of string matching this pattern
calculates the pattern score against several strings
the score is the count of string matching this pattern
calculates the pattern score against several strings the score is the count of string matching this pattern
fn pattern_score_against_string_vector(
        &self,
        pattern_name: &String,
        compiled_pattern: &Pattern,
        strings: &Vec<String>,
    ) -> usize {
        strings
            .iter()
            .filter(|string| match compiled_pattern.match_against(string) {
                Some(matches) => {
                    // println!(
                    //     "{} matches => {:?}",
                    //     pattern_name,
                    //     matches.get(pattern_name)
                    // );
                    matches.len() > 0
                }
                None => false,
            })
            .count()
    }
fn pattern_score_against_string_vector ( & self , pattern_name : & String , compiled_pattern : & Pattern , strings : & Vec < String > , ) -> usize { strings . iter ( ) . filter ( | string | match compiled_pattern . match_against ( string ) { Some ( matches ) => { // println!( //     "{} matches => {:?}", //     pattern_name, //     matches.get(pattern_name) // ); matches . len ( ) > 0 } None => false , } ) . count ( ) }
calculates the pattern score against several strings
the score is the count of string matching this pattern
calculates the pattern score against several strings the score is the count of string matching this pattern
&self
pattern_name
&String
compiled_pattern
&Pattern
strings
&Vec<String>
&self
pattern_name
&String
compiled_pattern
&Pattern
strings
&Vec<String>