Iterate over all lines with their credits.
(&self)
| 697 | |
| 698 | /// Iterate over all lines with their credits. |
| 699 | pub fn iter_lines(&self) -> impl Iterator<Item = (u64, &Credit)> { |
| 700 | self.ranges |
| 701 | .iter() |
| 702 | .flat_map(|r| (r.start_line..=r.end_line).map(move |line| (line, &r.credit))) |
| 703 | } |
| 704 | } |
| 705 | |
| 706 | impl fmt::Display for FileCredits { |