Function nannou::text::glyph::selected_rects_per_line[][src]

pub fn selected_rects_per_line<'a, I>(
    lines_with_rects: I,
    font: &'a Font,
    font_size: FontSize,
    start: Index,
    end: Index
) -> SelectedRectsPerLine<'a, I>

Notable traits for SelectedRectsPerLine<'a, I>

impl<'a, I> Iterator for SelectedRectsPerLine<'a, I> where
    I: Iterator<Item = (&'a str, Rect)>, 
type Item = SelectedRects<'a, 'a>;
where
    I: Iterator<Item = (&'a str, Rect)>, 

Produces an iterator that yields iteraors yielding Rects for each selected character in each line of text within the given iterator yielding char Rects.

Given some start and end indices, only Rects for chars between these two indices will be produced.

All lines that have no selected Rects will be skipped.