Function nannou::text::lines

source ·
pub fn lines<I>(text: &str, ranges: I) -> Lines<'_, I> 
where I: Iterator<Item = Range<usize>>,
Expand description

Produce an iterator yielding each line within the given text as a new &str, where the start and end indices into each line are provided by the given iterator.