[−][src]Struct weechat::hooks::Completion
A handle to a completion item.
Implementations
impl Completion
[src]
pub fn add(&self, word: &str)
[src]
Add a word for completion, keeping the list sorted.
pub fn base_command(&self) -> Cow<'_, str>
[src]
Get the command used in the completion.
pub fn base_word(&self) -> Cow<'_, str>
[src]
Get the word that is being completed.
pub fn arguments(&self) -> Cow<'_, str>
[src]
Get the command arguments including the base word.
pub fn add_with_options(
&self,
word: &str,
is_nick: bool,
position: CompletionPosition
)
[src]
&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 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,
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.
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>,