pub enum EditCommand {
Show 40 variants
MoveLineUp,
MoveLineDown,
InsertNewLine,
InsertTab,
NewLineAbove,
NewLineBelow,
DeleteBackward,
DeleteForward,
DeleteLine,
DeleteForwardAndInsert,
DeleteWordAndInsert,
DeleteLineAndInsert,
DeleteWordForward,
DeleteWordBackward,
DeleteToBeginningOfLine,
DeleteToEndOfLine,
DeleteToEndOfLineAndInsert,
JoinLines,
IndentLine,
OutdentLine,
ToggleLineComment,
Undo,
Redo,
ClipboardCopy,
ClipboardCut,
ClipboardPaste,
Yank,
Paste,
PasteBefore,
NormalMode,
InsertMode,
InsertFirstNonBlank,
Append,
AppendEndOfLine,
ToggleVisualMode,
ToggleLinewiseVisualMode,
ToggleBlockwiseVisualMode,
DuplicateLineUp,
DuplicateLineDown,
NormalizeLineEndings,
}
Variants§
MoveLineUp
MoveLineDown
InsertNewLine
InsertTab
NewLineAbove
NewLineBelow
DeleteBackward
DeleteForward
DeleteLine
DeleteForwardAndInsert
DeleteWordAndInsert
DeleteLineAndInsert
DeleteWordForward
DeleteWordBackward
DeleteToBeginningOfLine
DeleteToEndOfLine
DeleteToEndOfLineAndInsert
JoinLines
IndentLine
OutdentLine
ToggleLineComment
Undo
Redo
ClipboardCopy
ClipboardCut
ClipboardPaste
Yank
Paste
PasteBefore
NormalMode
InsertMode
InsertFirstNonBlank
Append
AppendEndOfLine
ToggleVisualMode
ToggleLinewiseVisualMode
ToggleBlockwiseVisualMode
DuplicateLineUp
DuplicateLineDown
NormalizeLineEndings
Implementations§
Source§impl EditCommand
impl EditCommand
pub fn not_changing_buffer(&self) -> bool
Trait Implementations§
Source§impl Clone for EditCommand
impl Clone for EditCommand
Source§fn clone(&self) -> EditCommand
fn clone(&self) -> EditCommand
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 EditCommand
impl Debug for EditCommand
Source§impl Display for EditCommand
impl Display for EditCommand
Source§impl EnumMessage for EditCommand
impl EnumMessage for EditCommand
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 EditCommand> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum EditCommand> for &'static str
Source§fn from(x: &'_derivative_strum EditCommand) -> &'static str
fn from(x: &'_derivative_strum EditCommand) -> &'static str
Converts to this type from the input type.
Source§impl From<EditCommand> for &'static str
impl From<EditCommand> for &'static str
Source§fn from(x: EditCommand) -> &'static str
fn from(x: EditCommand) -> &'static str
Converts to this type from the input type.
Source§impl FromStr for EditCommand
impl FromStr for EditCommand
Source§impl IntoEnumIterator for EditCommand
impl IntoEnumIterator for EditCommand
type Iterator = EditCommandIter
fn iter() -> EditCommandIter ⓘ
Source§impl PartialEq for EditCommand
impl PartialEq for EditCommand
Source§impl TryFrom<&str> for EditCommand
impl TryFrom<&str> for EditCommand
impl Eq for EditCommand
impl StructuralPartialEq for EditCommand
Auto Trait Implementations§
impl Freeze for EditCommand
impl RefUnwindSafe for EditCommand
impl Send for EditCommand
impl Sync for EditCommand
impl Unpin for EditCommand
impl UnwindSafe for EditCommand
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