pub(crate) fn filter(
        &self,
        score_name: &'static str,
        names_to_include: &[&'static str],
    ) -> CompositeScore {
        CompositeScore {
            name: score_name,
            benchmarks: self
                .benchmarks
                .iter()
                .filter(|b| names_to_include.contains(&b.name))
                .cloned()
                .collect(),
        }
    }
/// Return a new `CompositeScore` that contains results only from benchmarks included in the
/// provided array of benchmark names.
Return a new `CompositeScore` that contains results only from benchmarks included in the
provided array of benchmark names.
Return a new ` CompositeScore ` that contains results only from benchmarks included in the provided array of benchmark names .
pub(crate) fn filter(
        &self,
        score_name: &'static str,
        names_to_include: &[&'static str],
    ) -> CompositeScore {
        CompositeScore {
            name: score_name,
            benchmarks: self
                .benchmarks
                .iter()
                .filter(|b| names_to_include.contains(&b.name))
                .cloned()
                .collect(),
        }
    }
pub ( crate ) fn filter ( & self , score_name : & ' static str , names_to_include : & [ & ' static str ] , ) -> CompositeScore { CompositeScore { name : score_name , benchmarks : self . benchmarks . iter ( ) . filter ( | b | names_to_include . contains ( & b . name ) ) . cloned ( ) . collect ( ) , } }
Return a new `CompositeScore` that contains results only from benchmarks included in the
provided array of benchmark names.
Return a new ` CompositeScore ` that contains results only from benchmarks included in the provided array of benchmark names .
&self
score_name
&'static str
names_to_include
&[&'static str]
&self
score_name
&'static str
names_to_include
&[&'static str]