Trait rustyline::line_buffer::ChangeListener
source · pub trait ChangeListener: DeleteListener {
// Required methods
fn insert_char(&mut self, idx: usize, c: char);
fn insert_str(&mut self, idx: usize, string: &str);
fn replace(&mut self, idx: usize, old: &str, new: &str);
}
Expand description
Listener to be notified when the line is modified.
Required Methods§
sourcefn insert_char(&mut self, idx: usize, c: char)
fn insert_char(&mut self, idx: usize, c: char)
c
har inserted at idx
index
sourcefn insert_str(&mut self, idx: usize, string: &str)
fn insert_str(&mut self, idx: usize, string: &str)
string
inserted at idx
index