[][src]Trait liner::KeyMap

pub trait KeyMap: Default {
    fn handle_key_core<'a, W: Write>(
        &mut self,
        key: Key,
        editor: &mut Editor<'a, W>
    ) -> Result<()>; fn init<'a, W: Write>(&mut self, _editor: &mut Editor<'a, W>) { ... }
fn handle_key<'a, W: Write, C: Completer>(
        &mut self,
        key: Key,
        editor: &mut Editor<'a, W>,
        handler: &mut C
    ) -> Result<bool> { ... } }

Required methods

fn handle_key_core<'a, W: Write>(
    &mut self,
    key: Key,
    editor: &mut Editor<'a, W>
) -> Result<()>

Loading content...

Provided methods

fn init<'a, W: Write>(&mut self, _editor: &mut Editor<'a, W>)

fn handle_key<'a, W: Write, C: Completer>(
    &mut self,
    key: Key,
    editor: &mut Editor<'a, W>,
    handler: &mut C
) -> Result<bool>

Loading content...

Implementors

impl KeyMap for Emacs[src]

impl KeyMap for Vi[src]

Loading content...