pub enum EngineCmd {
ReplaceChar {
ch: char,
count: usize,
},
FindChar {
ch: char,
forward: bool,
till: bool,
count: usize,
},
AfterGChord {
ch: char,
count: usize,
},
AfterZChord {
ch: char,
count: usize,
},
}Expand description
Controller commands the host engine implements. hjkl-vim never mutates
the editor directly — it emits a command and the host (apps/hjkl) calls
the corresponding Editor method.
Variants§
ReplaceChar
FindChar
Emitted by PendingState::Find when the user completes f<x> / F<x>
/ t<x> / T<x>. The host calls Editor::find_char.
AfterGChord
Emitted by PendingState::AfterG when the user completes g<x>. The
host calls Editor::after_g(ch, count).
AfterZChord
Emitted by PendingState::AfterZ when the user completes z<x>. The
host calls Editor::after_z(ch, count).
Trait Implementations§
impl Eq for EngineCmd
impl StructuralPartialEq for EngineCmd
Auto Trait Implementations§
impl Freeze for EngineCmd
impl RefUnwindSafe for EngineCmd
impl Send for EngineCmd
impl Sync for EngineCmd
impl Unpin for EngineCmd
impl UnsafeUnpin for EngineCmd
impl UnwindSafe for EngineCmd
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