pub fn line_buffer_range(&self, range: Range<usize>) -> Option<&[char]> {
        let buffer = self.buffer();
        let beginning = self.core.offset(range.start, 0).unwrap();
        let end = self.core
            .offset(range.end - 1, self.line_width(range.end - 1).unwrap())
            .unwrap();
        Some(&buffer[beginning..end])
    }
/// Returns the buffer in a range of lines.
///
/// # Examples
///
/// ```
/// # use edit::editor::Editor;
/// let editor = Editor::new("a\n\
///                           b b b b\n\
///                           c", 1, 6).unwrap();
/// let c: Vec<char> = "b b b b\nc".chars().collect();
/// let s: &[char] = &c;
/// assert_eq!(editor.line_buffer_range(1..3), Some(s));
/// ```
Returns the buffer in a range of lines.
Returns the buffer in a range of lines .
pub fn line_buffer_range(&self, range: Range<usize>) -> Option<&[char]> {
        let buffer = self.buffer();
        let beginning = self.core.offset(range.start, 0).unwrap();
        let end = self.core
            .offset(range.end - 1, self.line_width(range.end - 1).unwrap())
            .unwrap();
        Some(&buffer[beginning..end])
    }
pub fn line_buffer_range ( & self , range : Range < usize > ) -> Option < & [ char ] > { let buffer = self . buffer ( ) ; let beginning = self . core . offset ( range . start , 0 ) . unwrap ( ) ; let end = self . core . offset ( range . end - 1 , self . line_width ( range . end - 1 ) . unwrap ( ) ) . unwrap ( ) ; Some ( & buffer [ beginning .. end ] ) }
Returns the buffer in a range of lines.
Returns the buffer in a range of lines .
&self
range
Range<usize>
&self
range
Range<usize>
examples
None
use edit::editor::editor;
None