Function limn_text_layout::lines [] [src]

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.