pub enum MoveCommand {
Show 21 variants
Down,
Up,
Left,
Right,
WordBackward,
WordForward,
WordEndForward,
DocumentStart,
DocumentEnd,
LineEnd,
LineStart,
LineStartNonBlank,
GotoLineDefaultLast,
GotoLineDefaultFirst,
MatchPairs,
NextUnmatchedRightBracket,
PreviousUnmatchedLeftBracket,
NextUnmatchedRightCurlyBracket,
PreviousUnmatchedLeftCurlyBracket,
ParagraphForward,
ParagraphBackward,
}
Variants§
Down
Up
Left
Right
WordBackward
WordForward
WordEndForward
DocumentStart
DocumentEnd
LineEnd
LineStart
LineStartNonBlank
GotoLineDefaultLast
GotoLineDefaultFirst
MatchPairs
NextUnmatchedRightBracket
PreviousUnmatchedLeftBracket
NextUnmatchedRightCurlyBracket
PreviousUnmatchedLeftCurlyBracket
ParagraphForward
ParagraphBackward
Implementations§
Source§impl MoveCommand
impl MoveCommand
pub fn to_movement(&self, count: Option<usize>) -> Movement
Trait Implementations§
Source§impl Clone for MoveCommand
impl Clone for MoveCommand
Source§fn clone(&self) -> MoveCommand
fn clone(&self) -> MoveCommand
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MoveCommand
impl Debug for MoveCommand
Source§impl Display for MoveCommand
impl Display for MoveCommand
Source§impl EnumMessage for MoveCommand
impl EnumMessage for MoveCommand
fn get_message(&self) -> Option<&'static str>
fn get_detailed_message(&self) -> Option<&'static str>
Source§fn get_documentation(&self) -> Option<&'static str>
fn get_documentation(&self) -> Option<&'static str>
Get the doc comment associated with a variant if it exists.
fn get_serializations(&self) -> &'static [&'static str]
Source§impl<'_derivative_strum> From<&'_derivative_strum MoveCommand> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum MoveCommand> for &'static str
Source§fn from(x: &'_derivative_strum MoveCommand) -> &'static str
fn from(x: &'_derivative_strum MoveCommand) -> &'static str
Converts to this type from the input type.
Source§impl From<MoveCommand> for &'static str
impl From<MoveCommand> for &'static str
Source§fn from(x: MoveCommand) -> &'static str
fn from(x: MoveCommand) -> &'static str
Converts to this type from the input type.
Source§impl FromStr for MoveCommand
impl FromStr for MoveCommand
Source§impl IntoEnumIterator for MoveCommand
impl IntoEnumIterator for MoveCommand
type Iterator = MoveCommandIter
fn iter() -> MoveCommandIter ⓘ
Source§impl PartialEq for MoveCommand
impl PartialEq for MoveCommand
Source§impl TryFrom<&str> for MoveCommand
impl TryFrom<&str> for MoveCommand
impl Eq for MoveCommand
impl StructuralPartialEq for MoveCommand
Auto Trait Implementations§
impl Freeze for MoveCommand
impl RefUnwindSafe for MoveCommand
impl Send for MoveCommand
impl Sync for MoveCommand
impl Unpin for MoveCommand
impl UnwindSafe for MoveCommand
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