pub enum InputFunction {
Show 178 variants
Abort,
AcceptLine,
AliasExpandLine,
ArrowKeyPrefix,
BackwardByte,
BackwardChar,
BackwardDeleteChar,
BackwardKillLine,
BackwardKillWord,
BackwardWord,
BashViComplete,
BeginningOfHistory,
BeginningOfLine,
BracketedPasteBegin,
BrushAcceptHint,
BrushAcceptHintWord,
CallLastKbdMacro,
CapitalizeWord,
CharacterSearch,
CharacterSearchBackward,
ClearDisplay,
ClearScreen,
Complete,
CompleteCommand,
CompleteFilename,
CompleteHostname,
CompleteIntoBraces,
CompleteUsername,
CompleteVariable,
CopyBackwardWord,
CopyForwardWord,
CopyRegionAsKill,
DabbrevExpand,
DeleteChar,
DeleteCharOrList,
DeleteHorizontalSpace,
DigitArgument,
DisplayShellVersion,
DoLowercaseVersion,
DowncaseWord,
DumpFunctions,
DumpMacros,
DumpVariables,
DynamicCompleteHistory,
EditAndExecuteCommand,
EmacsEditingMode,
EndKbdMacro,
EndOfHistory,
EndOfLine,
ExchangePointAndMark,
ExecuteNamedCommand,
ExportCompletions,
FetchHistory,
ForwardBackwardDeleteChar,
ForwardByte,
ForwardChar,
ForwardSearchHistory,
ForwardWord,
GlobCompleteWord,
GlobExpandWord,
GlobListExpansions,
HistoryAndAliasExpandLine,
HistoryExpandLine,
HistorySearchBackward,
HistorySearchForward,
HistorySubstringSearchBackward,
HistorySubstringSearchForward,
InsertComment,
InsertCompletions,
InsertLastArgument,
KillLine,
KillRegion,
KillWholeLine,
KillWord,
MagicSpace,
MenuComplete,
MenuCompleteBackward,
NextHistory,
NextScreenLine,
NonIncrementalForwardSearchHistory,
NonIncrementalForwardSearchHistoryAgain,
NonIncrementalReverseSearchHistory,
NonIncrementalReverseSearchHistoryAgain,
OldMenuComplete,
OperateAndGetNext,
OverwriteMode,
PossibleCommandCompletions,
PossibleCompletions,
PossibleFilenameCompletions,
PossibleHostnameCompletions,
PossibleUsernameCompletions,
PossibleVariableCompletions,
PreviousHistory,
PreviousScreenLine,
PrintLastKbdMacro,
QuotedInsert,
ReReadInitFile,
RedrawCurrentLine,
ReverseSearchHistory,
RevertLine,
SelfInsert,
SetMark,
ShellBackwardKillWord,
ShellBackwardWord,
ShellExpandLine,
ShellForwardWord,
ShellKillWord,
ShellTransposeWords,
SkipCsiSequence,
SpellCorrectWord,
StartKbdMacro,
TabInsert,
TildeExpand,
TransposeChars,
TransposeWords,
TtyStatus,
Undo,
UniversalArgument,
UnixFilenameRubout,
UnixLineDiscard,
UnixWordRubout,
UpcaseWord,
ViAppendEol,
ViAppendMode,
ViArgDigit,
ViBWord,
ViBackToIndent,
ViBackwardBigword,
ViBackwardWord,
ViBword,
ViChangeCase,
ViChangeChar,
ViChangeTo,
ViCharSearch,
ViColumn,
ViComplete,
ViDelete,
ViDeleteTo,
ViEWord,
ViEditAndExecuteCommand,
ViEditingMode,
ViEndBigword,
ViEndWord,
ViEofMaybe,
ViEword,
ViFWord,
ViFetchHistory,
ViFirstPrint,
ViForwardBigword,
ViForwardWord,
ViFword,
ViGotoMark,
ViInsertBeg,
ViInsertionMode,
ViMatch,
ViMovementMode,
ViNextWord,
ViOverstrike,
ViOverstrikeDelete,
ViPrevWord,
ViPut,
ViRedo,
ViReplace,
ViRubout,
ViSearch,
ViSearchAgain,
ViSetMark,
ViSubst,
ViTildeExpand,
ViUndo,
ViUnixWordRubout,
ViYankArg,
ViYankPop,
ViYankTo,
Yank,
YankLastArg,
YankNthArg,
YankPop,
}Expand description
Defines all input functions. Based on standard readline functions,
augmented with some brush-specific extensions.
Variants§
Abort
AcceptLine
AliasExpandLine
ArrowKeyPrefix
BackwardByte
BackwardChar
BackwardDeleteChar
BackwardKillLine
BackwardKillWord
BackwardWord
BashViComplete
BeginningOfHistory
BeginningOfLine
BracketedPasteBegin
BrushAcceptHint
BrushAcceptHintWord
CallLastKbdMacro
CapitalizeWord
CharacterSearch
CharacterSearchBackward
ClearDisplay
ClearScreen
Complete
CompleteCommand
CompleteFilename
CompleteHostname
CompleteIntoBraces
CompleteUsername
CompleteVariable
CopyBackwardWord
CopyForwardWord
CopyRegionAsKill
DabbrevExpand
DeleteChar
DeleteCharOrList
DeleteHorizontalSpace
DigitArgument
DisplayShellVersion
DoLowercaseVersion
DowncaseWord
DumpFunctions
DumpMacros
DumpVariables
DynamicCompleteHistory
EditAndExecuteCommand
EmacsEditingMode
EndKbdMacro
EndOfHistory
EndOfLine
ExchangePointAndMark
ExecuteNamedCommand
ExportCompletions
FetchHistory
ForwardBackwardDeleteChar
ForwardByte
ForwardChar
ForwardSearchHistory
ForwardWord
GlobCompleteWord
GlobExpandWord
GlobListExpansions
HistoryAndAliasExpandLine
HistoryExpandLine
HistorySearchBackward
HistorySearchForward
HistorySubstringSearchBackward
HistorySubstringSearchForward
InsertComment
InsertCompletions
InsertLastArgument
KillLine
KillRegion
KillWholeLine
KillWord
MagicSpace
MenuComplete
MenuCompleteBackward
NextHistory
NextScreenLine
NonIncrementalForwardSearchHistory
NonIncrementalForwardSearchHistoryAgain
NonIncrementalReverseSearchHistory
NonIncrementalReverseSearchHistoryAgain
OldMenuComplete
OperateAndGetNext
OverwriteMode
PossibleCommandCompletions
PossibleCompletions
PossibleFilenameCompletions
PossibleHostnameCompletions
PossibleUsernameCompletions
PossibleVariableCompletions
PreviousHistory
PreviousScreenLine
PrintLastKbdMacro
QuotedInsert
ReReadInitFile
RedrawCurrentLine
ReverseSearchHistory
RevertLine
SelfInsert
SetMark
ShellBackwardKillWord
ShellBackwardWord
ShellExpandLine
ShellForwardWord
ShellKillWord
ShellTransposeWords
SkipCsiSequence
SpellCorrectWord
StartKbdMacro
TabInsert
TildeExpand
TransposeChars
TransposeWords
TtyStatus
Undo
UniversalArgument
UnixFilenameRubout
UnixLineDiscard
UnixWordRubout
UpcaseWord
ViAppendEol
ViAppendMode
ViArgDigit
ViBWord
ViBackToIndent
ViBackwardBigword
ViBackwardWord
ViBword
ViChangeCase
ViChangeChar
ViChangeTo
ViCharSearch
ViColumn
ViComplete
ViDelete
ViDeleteTo
ViEWord
ViEditAndExecuteCommand
ViEditingMode
ViEndBigword
ViEndWord
ViEofMaybe
ViEword
ViFWord
ViFetchHistory
ViFirstPrint
ViForwardBigword
ViForwardWord
ViFword
ViGotoMark
ViInsertBeg
ViInsertionMode
ViMatch
ViMovementMode
ViNextWord
ViOverstrike
ViOverstrikeDelete
ViPrevWord
ViPut
ViRedo
ViReplace
ViRubout
ViSearch
ViSearchAgain
ViSetMark
ViSubst
ViTildeExpand
ViUndo
ViUnixWordRubout
ViYankArg
ViYankPop
ViYankTo
Yank
YankLastArg
YankNthArg
YankPop
Trait Implementations§
Source§impl Clone for InputFunction
impl Clone for InputFunction
Source§fn clone(&self) -> InputFunction
fn clone(&self) -> InputFunction
Returns a duplicate 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 InputFunction
impl Debug for InputFunction
Source§impl Display for InputFunction
impl Display for InputFunction
Source§impl<'_derivative_strum> From<&'_derivative_strum InputFunction> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum InputFunction> for &'static str
Source§fn from(x: &'_derivative_strum InputFunction) -> &'static str
fn from(x: &'_derivative_strum InputFunction) -> &'static str
Converts to this type from the input type.
Source§impl From<InputFunction> for &'static str
impl From<InputFunction> for &'static str
Source§fn from(x: InputFunction) -> &'static str
fn from(x: InputFunction) -> &'static str
Converts to this type from the input type.
Source§impl FromStr for InputFunction
impl FromStr for InputFunction
Source§impl Hash for InputFunction
impl Hash for InputFunction
Source§impl IntoEnumIterator for InputFunction
impl IntoEnumIterator for InputFunction
Source§impl PartialEq for InputFunction
impl PartialEq for InputFunction
Source§impl TryFrom<&str> for InputFunction
impl TryFrom<&str> for InputFunction
impl Eq for InputFunction
impl StructuralPartialEq for InputFunction
Auto Trait Implementations§
impl Freeze for InputFunction
impl RefUnwindSafe for InputFunction
impl Send for InputFunction
impl Sync for InputFunction
impl Unpin for InputFunction
impl UnsafeUnpin for InputFunction
impl UnwindSafe for InputFunction
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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