(section_display: &[SectionDisplay])
| 685 | } |
| 686 | |
| 687 | fn find_first_symbol(section_display: &[SectionDisplay]) -> Option<usize> { |
| 688 | section_display.iter().flat_map(|s| s.symbols.iter()).next().map(|s| s.symbol) |
| 689 | } |
| 690 | |
| 691 | fn find_last_symbol(section_display: &[SectionDisplay]) -> Option<usize> { |
| 692 | section_display.iter().flat_map(|s| s.symbols.iter()).next_back().map(|s| s.symbol) |
no test coverage detected