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

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

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>)
Possibilities(Vec<String>)
Nothing

Trait Implementations

impl Debug for Completion[src]

impl PartialEq<Completion> for Completion[src]

impl StructuralPartialEq for Completion[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.