pub fn lines<I>(text: &str, ranges: I) -> Lines<'_, I> ⓘwhere I: Iterator<Item = Range<usize>>,
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.
text
&str