Trait modalkit::editing::store::GlobalAdjustable

source ·
pub trait GlobalAdjustable<ID: ApplicationContentId> {
    // Required methods
    fn zero_id(&mut self, id: &ID);
    fn adjust_id(&mut self, id: &ID, adjs: &[CursorAdjustment]);
}
Expand description

Trait for objects that store cursors from multiple buffers.

Required Methods§

source

fn zero_id(&mut self, id: &ID)

Zero out cursors associated with a given buffer.

source

fn adjust_id(&mut self, id: &ID, adjs: &[CursorAdjustment])

Adjust cursors associated with a given buffer.

Implementations on Foreign Types§

source§

impl<C, ID> GlobalAdjustable<ID> for (ID, C)

source§

fn zero_id(&mut self, id: &ID)

source§

fn adjust_id(&mut self, id: &ID, adjs: &[CursorAdjustment])

Implementors§