Trait reedline::EditMode

source ·
pub trait EditMode: Send {
    // Required methods
    fn parse_event(&mut self, event: ReedlineRawEvent) -> ReedlineEvent;
    fn edit_mode(&self) -> PromptEditMode;
}
Expand description

Define the style of parsing for the edit events Available default options:

  • Emacs
  • Vi

Required Methods§

source

fn parse_event(&mut self, event: ReedlineRawEvent) -> ReedlineEvent

Translate the given user input event into what the LineEditor understands

source

fn edit_mode(&self) -> PromptEditMode

What to display in the prompt indicator

Implementors§