Trait liner::KeyMap
[−]
[src]
pub trait KeyMap<'a, W: Write, T>: From<T> { fn handle_key_core(&mut self, key: Key) -> Result<()>; fn editor(&self) -> &Editor<'a, W>; fn editor_mut(&mut self) -> &mut Editor<'a, W>; fn handle_key(
&mut self,
key: Key,
handler: &mut EventHandler<W>
) -> Result<bool> { ... } }
Required Methods
fn handle_key_core(&mut self, key: Key) -> Result<()>
fn editor(&self) -> &Editor<'a, W>
fn editor_mut(&mut self) -> &mut Editor<'a, W>
Provided Methods
fn handle_key(
&mut self,
key: Key,
handler: &mut EventHandler<W>
) -> Result<bool>
&mut self,
key: Key,
handler: &mut EventHandler<W>
) -> Result<bool>