Enum linefeed::command::Command [] [src]

pub enum Command {
    Abort,
    AcceptLine,
    Complete,
    InsertCompletions,
    PossibleCompletions,
    MenuComplete,
    MenuCompleteBackward,
    DigitArgument,
    SelfInsert,
    TabInsert,
    OverwriteMode,
    InsertComment,
    BackwardChar,
    ForwardChar,
    CharacterSearch,
    CharacterSearchBackward,
    BackwardWord,
    ForwardWord,
    BackwardKillLine,
    KillLine,
    BackwardKillWord,
    KillWord,
    UnixWordRubout,
    ClearScreen,
    BeginningOfLine,
    EndOfFile,
    EndOfLine,
    BackwardDeleteChar,
    DeleteChar,
    TransposeChars,
    TransposeWords,
    BeginningOfHistory,
    EndOfHistory,
    NextHistory,
    PreviousHistory,
    ForwardSearchHistory,
    ReverseSearchHistory,
    HistorySearchForward,
    HistorySearchBackward,
    QuotedInsert,
    Yank,
    YankPop,
    Custom(Cow<'static, str>),
    Macro(Cow<'static, str>),
}

Represents a command to modify Reader state

Variants

Abort history search

Accepts the current input line

Perform completion

Insert all completions into the input buffer

Show possible completions

Insert the next possible completion

Insert the previous possible completion

Begin numeric argument input

Insert character or sequence at the cursor

Inserts a tab character

Toggles insert/overwrite mode

Insert a comment and accept input

Move the cursor backward one character

Move the cursor forward one character

Search for a given character

Search backward for a given character

Move the cursor backward one word

Move the cursor forward one word

Kill all characters before the cursor

Kill all characters after the cursor

Kill a word before the cursor

Kill a word after the cursor

Kill a word before the cursor, delimited by whitespace

Clear the screen

Move the cursor to the beginning of the line

Indicates end-of-file

Move the cursor to the end of the line

Delete one character before the cursor

Delete one character after the cursor

Drag the character before the cursor forward

Drag the word before the cursor forward

Move to the first line of history

Move to the last line of history

Select next line in history

Select previous line in history

Incremental search in history

Incremental reverse search in history

Non-incremental forward history search using input up to the cursor

Non-incremental backward history search using input up to the cursor

Insert literal character

Insert text into buffer from the kill ring

Rotate the kill ring and yank the new top

Custom application-defined command

Execute a given key sequence

Methods

impl Command
[src]

Constructs a command from a 'static str reference.

If the string does not refer to a built-in command, a value of Command::Custom(Borrowed(name)) will be returned.

Constructs a command from a non-'static string-like type.

If the string does not refer to a built-in command, a value of Command::Custom(Owned(name.into())) will be returned.

impl Command
[src]

Returns the category of the command

Trait Implementations

impl Clone for Command
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Command
[src]

Formats the value using the given formatter. Read more

impl Eq for Command
[src]

impl PartialEq for Command
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Display for Command
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Command

impl Sync for Command