Skip to main content

combine_highlights

Function combine_highlights 

Source
pub fn combine_highlights(
    a: impl IntoIterator<Item = (Range<usize>, HighlightStyle)>,
    b: impl IntoIterator<Item = (Range<usize>, HighlightStyle)>,
) -> impl Iterator<Item = (Range<usize>, HighlightStyle)>
Expand description

Combine and merge the highlights and ranges in the two iterators.