Enum oursh::repl::completion::Completion[][src]

pub enum Completion {
    None,
    Partial(Vec<String>),
    Complete(String),
}
Expand description

The result of a query for text completion.

A complete result is expected tob run without much thought by the user. Some care should be taken to avoid dangerous completions.

Variants

None

Nothing completes the user text.

Partial

The user text could match multiple complete values.

Tuple Fields of Partial

0: Vec<String>
Complete

A single complete value.

Tuple Fields of Complete

0: String

Implementations

Returns true if this completion is a single option.

Return the first (lexicographically) option if there are multiple possibilities.

Return a list of all the possibile complete matches.

Trait Implementations

Formats the value using the given formatter. Read more

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.