Enum shi::command::Completion [−][src]
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
Trait Implementations
impl Debug for Completion
[src]
impl PartialEq<Completion> for Completion
[src]
fn eq(&self, other: &Completion) -> bool
[src]
fn ne(&self, other: &Completion) -> bool
[src]
impl StructuralPartialEq for Completion
[src]
Auto Trait Implementations
impl RefUnwindSafe for Completion
impl Send for Completion
impl Sync for Completion
impl Unpin for Completion
impl UnwindSafe for Completion
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,