pub fn lines_vec(&self, range:std::ops::Range<Bytes>) -> Vec<String> {
        let rope_range   = range.start.as_usize() .. range.end.as_usize();
        let mut lines    = self.cell.borrow().lines(rope_range).map(|t|t.into()).collect_vec();
        let missing_last = lines.len() == self.last_line_index().as_usize();
        if  missing_last { lines.push("".into()) }
        lines
    }
/// Get all lines in the provided range as strings.
Get all lines in the provided range as strings.
Get all lines in the provided range as strings .
pub fn lines_vec(&self, range:std::ops::Range<Bytes>) -> Vec<String> {
        let rope_range   = range.start.as_usize() .. range.end.as_usize();
        let mut lines    = self.cell.borrow().lines(rope_range).map(|t|t.into()).collect_vec();
        let missing_last = lines.len() == self.last_line_index().as_usize();
        if  missing_last { lines.push("".into()) }
        lines
    }
pub fn lines_vec ( & self , range : std :: ops :: Range < Bytes > ) -> Vec < String > { let rope_range = range . start . as_usize ( ) .. range . end . as_usize ( ) ; let mut lines = self . cell . borrow ( ) . lines ( rope_range ) . map ( | t | t . into ( ) ) . collect_vec ( ) ; let missing_last = lines . len ( ) == self . last_line_index ( ) . as_usize ( ) ; if missing_last { lines . push ( " " . into ( ) ) } lines }
Get all lines in the provided range as strings.
Get all lines in the provided range as strings .
&self
range
std::ops::Range<Bytes>
&self
range
std::ops::Range<Bytes>