Struct mg::completion::CommandCompleter
[−]
[src]
pub struct CommandCompleter<T: Clone> { /* fields omitted */ }
A command completer.
Methods
impl<T: Clone + EnumMetaData> CommandCompleter<T>
[src]
fn new() -> CommandCompleter<T>
[src]
Create a new command completer.
Trait Implementations
impl<T: Clone> Completer for CommandCompleter<T>
[src]
fn completions(&mut self, input: &str) -> Vec<CompletionResult>
[src]
From the user input, return the completion results. The results are on two columns, hence the 2-tuple. Read more
fn columns(&self) -> Vec<Column>
[src]
The number of columns of the completer.
fn column_count(&self) -> usize
[src]
The number of column.
fn complete_result(&self, value: &str) -> String
[src]
From the selected text entry, return the text that should be written in the text input.
fn text_column(&self) -> i32
[src]
Set the column to use as the result of a selected text entry.