pub struct Completion { /* private fields */ }
Expand description
A handle to a completion item.
Implementations§
Source§impl Completion
impl Completion
Sourcepub fn base_command(&self) -> Cow<'_, str>
pub fn base_command(&self) -> Cow<'_, str>
Get the command used in the completion.
Sourcepub fn add_with_options(
&self,
word: &str,
is_nick: bool,
position: CompletionPosition,
)
pub fn add_with_options( &self, word: &str, is_nick: bool, position: CompletionPosition, )
Add a word to the completion giving the position and wether the word is a nick.
§Arguments
-
word
- The word that should be added to the completion. -
is_nick
- Set if the word is a nick. -
position
- Set the position where the nick should be added to.
Auto Trait Implementations§
impl Freeze for Completion
impl RefUnwindSafe for Completion
impl !Send for Completion
impl !Sync for Completion
impl Unpin for Completion
impl UnwindSafe for Completion
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