pub struct Emacs { /* private fields */ }
Expand description
Emacs keybindings for Editor
. This is the default for Context::read_line()
.
use liner::*;
let mut context = Context::new();
context.key_bindings = KeyBindings::Emacs;
Implementations§
Trait Implementations§
source§impl KeyMap for Emacs
impl KeyMap for Emacs
fn handle_key_core<'a, W: Write>( &mut self, key: Key, ed: &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>
Auto Trait Implementations§
impl RefUnwindSafe for Emacs
impl Send for Emacs
impl Sync for Emacs
impl Unpin for Emacs
impl UnwindSafe for Emacs
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more