Trait rustyline::line_buffer::DeleteListener
source · pub trait DeleteListener {
// Required method
fn delete(&mut self, idx: usize, string: &str, dir: Direction);
// Provided methods
fn start_killing(&mut self) { ... }
fn stop_killing(&mut self) { ... }
}
Expand description
Listener to be notified when some text is deleted.
Required Methods§
Provided Methods§
sourcefn start_killing(&mut self)
fn start_killing(&mut self)
used to make the distinction between simple character(s) deletion and word(s)/line(s) deletion
sourcefn stop_killing(&mut self)
fn stop_killing(&mut self)
used to make the distinction between simple character(s) deletion and word(s)/line(s) deletion