pub fn lines<I>(text: &str, ranges: I) -> Lines<'_, I>
Notable traits for Lines<'a, I>
impl<'a, I> Iterator for Lines<'a, I> where
    I: Iterator<Item = Range<usize>>, 
type Item = &'a str;
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.