Enum terminal_cli::AutocompleteResult [] [src]

pub enum AutocompleteResult {
    None,
    SingleMatch {
        line: AutocompleteLine,
    },
    MultipleMatches {
        lines: Vec<AutocompleteLine>,
    },
}

Result of the autocomplete request on a given set of commands

Variants

No suggestions available

A single match has been found, the line buffer can be immediately expanded with the new command

Fields of SingleMatch

Multiple matches, usually they can be presented to the end user in a column format.

Fields of MultipleMatches

Trait Implementations

impl Debug for AutocompleteResult
[src]

[src]

Formats the value using the given formatter.

impl Clone for AutocompleteResult
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for AutocompleteResult
[src]

[src]

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

[src]

This method tests for !=.