pub fn replace(&mut self, s: &str, range: Range<Position>) {
        let p = range.start;
        self.delete_range(range);
        self.insert_string_at(s, p.line, p.column);
    }
/// Replaces the buffer with a string in a range.
///
/// # Examples
///
/// ```
/// # use edit::editor::Editor;
/// use edit::editor::Position;
/// let mut editor = Editor::new(
///     "aa\n\
///      bb\n\
///      cc\n\
///      dd",
///     0,
///     0,
/// ).unwrap();
/// editor.replace("x\nx", Position::new(1, 1)..Position::new(2, 2));
/// assert_eq!(
///     editor.buffer_as_str(),
///     "aa\n\
///      bx\n\
///      x\n\
///      dd"
/// );
/// ```
Replaces the buffer with a string in a range.
Replaces the buffer with a string in a range .
pub fn replace(&mut self, s: &str, range: Range<Position>) {
        let p = range.start;
        self.delete_range(range);
        self.insert_string_at(s, p.line, p.column);
    }
pub fn replace ( & mut self , s : & str , range : Range < Position > ) { let p = range . start ; self . delete_range ( range ) ; self . insert_string_at ( s , p . line , p . column ) ; }
Replaces the buffer with a string in a range.
Replaces the buffer with a string in a range .
&mut self
s
&str
range
Range<Position>
&mut self
s
&str
range
Range<Position>
examples
None
use edit::editor::editor;
None