[][src]Struct weechat::hooks::Completion

pub struct Completion { /* fields omitted */ }

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]

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.