Add a range of lines with the same credit.
(&mut self, start: u64, end: u64, credit: Credit)
| 646 | |
| 647 | /// Add a range of lines with the same credit. |
| 648 | pub fn add_range(&mut self, start: u64, end: u64, credit: Credit) { |
| 649 | self.stats_cache = None; |
| 650 | self.ranges.push(CreditRange::new(start, end, credit)); |
| 651 | } |
| 652 | |
| 653 | /// Get the credit for a specific line. |
| 654 | pub fn get_credit(&self, line: u64) -> Option<&Credit> { |