fn extract_sel_regions(&self, sel_regions: &[SelRegion]) -> Option<String> {
        let mut saved = None;
        for region in sel_regions {
            if !region.is_caret() {
                let val = self.text.slice_to_string(region.min(), region.max());
                match saved {
                    None => saved = Some(val),
                    Some(ref mut s) => {
                        s.push('\n');
                        s.push_str(&val);
                    }
                }
            }
        }
        saved
    }
/// Extracts non-caret selection regions into a string, joining multiple regions
/// with newlines.
Extracts non-caret selection regions into a string, joining multiple regions
with newlines.
Extracts non - caret selection regions into a string joining multiple regions with newlines .
fn extract_sel_regions(&self, sel_regions: &[SelRegion]) -> Option<String> {
        let mut saved = None;
        for region in sel_regions {
            if !region.is_caret() {
                let val = self.text.slice_to_string(region.min(), region.max());
                match saved {
                    None => saved = Some(val),
                    Some(ref mut s) => {
                        s.push('\n');
                        s.push_str(&val);
                    }
                }
            }
        }
        saved
    }
fn extract_sel_regions ( & self , sel_regions : & [ SelRegion ] ) -> Option < String > { let mut saved = None ; for region in sel_regions { if ! region . is_caret ( ) { let val = self . text . slice_to_string ( region . min ( ) , region . max ( ) ) ; match saved { None => saved = Some ( val ) , Some ( ref mut s ) => { s . push ( '\n' ) ; s . push_str ( & val ) ; } } } } saved }
Extracts non-caret selection regions into a string, joining multiple regions
with newlines.
Extracts non - caret selection regions into a string joining multiple regions with newlines .
&self
sel_regions
&[SelRegion]