Trait modalkit::editing::cursor::Adjustable

source ·
pub trait Adjustable {
    // Required methods
    fn zero(&mut self);
    fn adjust(&mut self, adj: &[CursorAdjustment]);
}
Expand description

Trait for adjusting cursors and objects that contain cursors.

Required Methods§

source

fn zero(&mut self)

Zero out the line and column of any contained cursors.

source

fn adjust(&mut self, adj: &[CursorAdjustment])

Apply a CursorAdjustment to any applicable cursors.

Implementations on Foreign Types§

source§

impl<T> Adjustable for VecDeque<T>
where T: Adjustable,

source§

fn zero(&mut self)

source§

fn adjust(&mut self, adj: &[CursorAdjustment])

source§

impl<T> Adjustable for Vec<T>
where T: Adjustable,

source§

fn zero(&mut self)

source§

fn adjust(&mut self, adj: &[CursorAdjustment])

Implementors§