CommonAction

Trait CommonAction 

Source
pub trait CommonAction {
    // Required methods
    fn exec_motion_mode(
        &self,
        ed: &Editor,
        cursor: &mut Cursor,
        motion_mode: MotionMode,
        range: Range<usize>,
        is_vertical: bool,
        register: &mut Register,
    );
    fn do_edit(
        &self,
        ed: &Editor,
        cursor: &mut Cursor,
        cmd: &EditCommand,
        modal: bool,
        register: &mut Register,
        smart_tab: bool,
    ) -> bool;
}
Expand description

Trait for common actions needed for the default implementation of the operations.

Required Methods§

Source

fn exec_motion_mode( &self, ed: &Editor, cursor: &mut Cursor, motion_mode: MotionMode, range: Range<usize>, is_vertical: bool, register: &mut Register, )

Source

fn do_edit( &self, ed: &Editor, cursor: &mut Cursor, cmd: &EditCommand, modal: bool, register: &mut Register, smart_tab: bool, ) -> bool

Perform an edit.

Returns true if there was any change.

Implementors§