pub struct FindForward(pub Option<char>);Expand description
Moves the cursor to the next occurrence of a character to the right on the
current line (Vim f). Does nothing if the character is not found.
The target is None until the key handler supplies the next keystroke via
Execute::char_arg.
Tuple Fields§
§0: Option<char>Trait Implementations§
Source§impl Clone for FindForward
impl Clone for FindForward
Source§fn clone(&self) -> FindForward
fn clone(&self) -> FindForward
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FindForward
Source§impl Debug for FindForward
impl Debug for FindForward
Source§impl Execute for FindForward
impl Execute for FindForward
fn execute(&mut self, state: &mut EditorState)
Source§fn char_arg(&mut self) -> Option<&mut Option<char>>
fn char_arg(&mut self) -> Option<&mut Option<char>>
Returns a handle to this action’s character argument if it takes one
(like
f/t). While the inner value is None, the action is still
waiting for the key handler to supply the next keystroke through it.Source§fn is_repeatable(&self) -> bool
fn is_repeatable(&self) -> bool
Whether this action can be replayed by the dot-repeat command.
Source§impl From<FindForward> for Action
impl From<FindForward> for Action
Source§fn from(v: FindForward) -> Action
fn from(v: FindForward) -> Action
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FindForward
impl RefUnwindSafe for FindForward
impl Send for FindForward
impl Sync for FindForward
impl Unpin for FindForward
impl UnsafeUnpin for FindForward
impl UnwindSafe for FindForward
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more