pub struct ViCmd { /* private fields */ }
Implementations§
Source§impl ViCmd
impl ViCmd
Sourcepub fn repeat<F: FnMut(usize)>(&mut self, f: F)
pub fn repeat<F: FnMut(usize)>(&mut self, f: F)
Repeat the provided function count times, resetting count after
Sourcepub fn motion<F: FnMut(Event)>(
&mut self,
motion: Motion,
ctx: &mut ViContext<F>,
)
pub fn motion<F: FnMut(Event)>( &mut self, motion: Motion, ctx: &mut ViContext<F>, )
Set motion
Sourcepub fn operator<F: FnMut(Event)>(
&mut self,
operator: Operator,
ctx: &mut ViContext<F>,
)
pub fn operator<F: FnMut(Event)>( &mut self, operator: Operator, ctx: &mut ViContext<F>, )
Set operator, may set motion if operator is doubled like dd
Sourcepub fn text_object<F: FnMut(Event)>(
&mut self,
text_object: TextObject,
ctx: &mut ViContext<F>,
) -> bool
pub fn text_object<F: FnMut(Event)>( &mut self, text_object: TextObject, ctx: &mut ViContext<F>, ) -> bool
Set text object and return true if supported by the motion
Trait Implementations§
impl Copy for ViCmd
impl Eq for ViCmd
impl StructuralPartialEq for ViCmd
Auto Trait Implementations§
impl Freeze for ViCmd
impl RefUnwindSafe for ViCmd
impl Send for ViCmd
impl Sync for ViCmd
impl Unpin for ViCmd
impl UnwindSafe for ViCmd
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