pub fn add_report(&mut self, report: Report) {
        for (lang, stats) in &report.stats.blobs {
            let mut new_report = Report::new(report.name.clone());
            new_report.stats = stats.clone();

            self.children.entry(*lang).or_default().push(new_report);
        }

        self.reports.push(report);
    }
/// Add a `Report` to the Language. This will not update the totals in the
/// Language struct.
Add a `Report` to the Language. This will not update the totals in the
Language struct.
Add a ` Report ` to the Language . This will not update the totals in the Language struct .
pub fn add_report(&mut self, report: Report) {
        for (lang, stats) in &report.stats.blobs {
            let mut new_report = Report::new(report.name.clone());
            new_report.stats = stats.clone();
            self.children.entry(*lang).or_default().push(new_report);
        }
        self.reports.push(report);
    }
pub fn add_report ( & mut self , report : Report ) { for ( lang , stats ) in & report . stats . blobs { let mut new_report = Report :: new ( report . name . clone ( ) ) ; new_report . stats = stats . clone ( ) ; self . children . entry ( * lang ) . or_default ( ) . push ( new_report ) ; } self . reports . push ( report ) ; }
Add a `Report` to the Language.
Add a ` Report ` to the Language .
&mut self
report
Report
&mut self
report
Report