pub fn sum_counters(&self, id: u32) -> PatternCounters {
        self.run_data
            .values()
            .filter(|x| x.pid == id)
            .map(|x| &x.counters)
            .sum()
    }
/// Sum all counters from `rundata` for all tags, but excluding the value of id
Sum all counters from `rundata` for all tags, but excluding the value of id
Sum all counters from ` rundata ` for all tags but excluding the value of id
pub fn sum_counters(&self, id: u32) -> PatternCounters {
        self.run_data
            .values()
            .filter(|x| x.pid == id)
            .map(|x| &x.counters)
            .sum()
    }
pub fn sum_counters ( & self , id : u32 ) -> PatternCounters { self . run_data . values ( ) . filter ( | x | x . pid == id ) . map ( | x | & x . counters ) . sum ( ) }
Sum all counters from `rundata` for all tags, but excluding the value of id
Sum all counters from ` rundata ` for all tags but excluding the value of id
&self
id
u32
&self
id
u32