pub enum AutocompleteResult {
None,
SingleMatch {
line: AutocompleteLine,
},
MultipleMatches {
lines: Vec<AutocompleteLine>,
},
}
Expand description
Result of the autocomplete request on a given set of commands
Variants§
None
No suggestions available
SingleMatch
A single match has been found, the line buffer can be immediately expanded with the new command
Fields
§
line: AutocompleteLine
MultipleMatches
Multiple matches, usually they can be presented to the end user in a column format.
Fields
§
lines: Vec<AutocompleteLine>
Trait Implementations§
Source§impl Clone for AutocompleteResult
impl Clone for AutocompleteResult
Source§fn clone(&self) -> AutocompleteResult
fn clone(&self) -> AutocompleteResult
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AutocompleteResult
impl Debug for AutocompleteResult
Source§impl PartialEq for AutocompleteResult
impl PartialEq for AutocompleteResult
impl StructuralPartialEq for AutocompleteResult
Auto Trait Implementations§
impl Freeze for AutocompleteResult
impl RefUnwindSafe for AutocompleteResult
impl Send for AutocompleteResult
impl Sync for AutocompleteResult
impl Unpin for AutocompleteResult
impl UnwindSafe for AutocompleteResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more