pub enum Preempted {
Count,
SelfInsert,
Newline,
PromptInsert,
}Expand description
What dispatch does with a key INSTEAD of consulting the binding table.
Named so a reader can tell the three apart: they look alike from the
dispatcher’s side (all three return before lookup) and are completely
different to an operator trying to bind the key.
Variants§
Count
Normal mode: the key is composing a count (5 of 5dd).
SelfInsert
Insert mode: a printable character types itself.
Newline
Insert mode: <CR> opens a line.
PromptInsert
Command mode: a printable character types into the prompt.
Trait Implementations§
impl Copy for Preempted
impl Eq for Preempted
impl StructuralPartialEq for Preempted
Auto Trait Implementations§
impl Freeze for Preempted
impl RefUnwindSafe for Preempted
impl Send for Preempted
impl Sync for Preempted
impl Unpin for Preempted
impl UnsafeUnpin for Preempted
impl UnwindSafe for Preempted
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