pub struct Emacs { /* private fields */ }
Expand description
Emacs keybindings for Editor
. This is the default for Context::read_line()
.
use sl_liner::*;
use sl_liner::keymap;
struct EmptyCompleter;
impl Completer for EmptyCompleter {
fn completions(&mut self, _start: &str) -> Vec<String> {
Vec::new()
}
}
let mut context = Context::new();
// This will hang github actions on windows...
//let res = context.read_line(Prompt::from("[prompt]$ "), None);
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Emacs
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