pub fn trailing_whitespace_ranges(rope: &Rope) -> Vec<Range<usize>, Global>
Expand description

Find all of the ranges of whitespace that occur at the ends of lines in the given rope.

This could also be done with a regex search, but this implementation avoids copying text.