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§

source

fn delete(&mut self, idx: usize, string: &str, dir: Direction)

string deleted at idx index

Provided Methods§

source

fn start_killing(&mut self)

used to make the distinction between simple character(s) deletion and word(s)/line(s) deletion

source

fn stop_killing(&mut self)

used to make the distinction between simple character(s) deletion and word(s)/line(s) deletion

Implementors§