Trait DeleteListener

trait DeleteListener

Listener to be notified when some text is deleted.

Required Methods

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

string deleted at idx index

Provided Methods

fn start_killing(self: &mut Self)

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

fn stop_killing(self: &mut Self)

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

Implementors