pub fn delete_line_range(&mut self, range: Range<usize>) {
        // TODO: Confirm that the position is set exactly.
        for l in range.rev() {
            self.delete_line(l);
        }
    }
/// Deletes the buffer in a line range.
///
/// # Examples
///
/// ```
/// # use edit::editor::Editor;
/// let mut editor = Editor::new("a a\n\
///                               b b b\n\
///                               c c\n\
///                               d d", 0, 3).unwrap();
/// editor.delete_line_range(1..3);
///
/// assert_eq!(
///     editor.buffer_as_str(),
///     "a a\n\
///      d d"
/// );
/// assert_eq!(editor.line(), 0);
/// assert_eq!(editor.column(), 3);
/// ```
Deletes the buffer in a line range.
Deletes the buffer in a line range .
pub fn delete_line_range(&mut self, range: Range<usize>) {
        // TODO: Confirm that the position is set exactly.
        for l in range.rev() {
            self.delete_line(l);
        }
    }
pub fn delete_line_range ( & mut self , range : Range < usize > ) { // TODO: Confirm that the position is set exactly. for l in range . rev ( ) { self . delete_line ( l ) ; } }
Deletes the buffer in a line range.
Deletes the buffer in a line range .
&mut self
range
Range<usize>
&mut self
range
Range<usize>
examples
None
use edit::editor::editor;
let mut editor = Editor::new("a a\n\
b b b\n\
c c\n\
d d", 0, 3).unwrap();
editor.delete_line_range(1..3).


let mut editor = Editor :: new ( " a a \ n \ b b b \ n \ c c \ n \ d d " 0 3 ) . unwrap () ; editor . delete_line_range ( 1 .. 3 ) .