Enum shi::command::Completion[][src]

pub enum Completion {
    PartialArgCompletion(Vec<String>),
    Possibilities(Vec<String>),
    Nothing,
}
Expand description

Completion represents the result of an autocompletion for command arguments.

There are two cases that case occur:

  • PartialArgCompletion - The last argument is partially typed and can be completed to full. PartialArgCompletion contains the suffix which, when append to the partial argument, provides the full argument.
  • Possibilities - The arguments are complete, and there are guesses as to what the next argument could be.
  • Nothing - There are no completions to provide, either because there is no autocompletion, or because the command and its arguments are complete already.

Variants

PartialArgCompletion(Vec<String>)

Tuple Fields of PartialArgCompletion

0: Vec<String>
Possibilities(Vec<String>)

Tuple Fields of Possibilities

0: Vec<String>
Nothing

Trait Implementations

Formats the value using the given formatter. Read more

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

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.