@@ -661,6 +661,15 @@ impl<'a> IntoIterator for &'a Selection {
664+impl IntoIterator for Selection {
666+ type IntoIter = smallvec::IntoIter<[Range; 1]>;
668+ fn into_iter(self) -> smallvec::IntoIter<[Range; 1]> {
669+ self.ranges.into_iter()
664// TODO: checkSelection -> check if valid for doc length && sorted
673// TODO: checkSelection -> check if valid for doc length && sorted
666pub fn keep_or_remove_matches(
675pub fn keep_or_remove_matches(