[][src]Struct mg::completion::Completion

pub struct Completion { /* fields omitted */ }

Completion to use with a text Entry.

Methods

impl Completion[src]

pub fn new() -> Self[src]

Create a new completion widget.

pub fn add_completer(
    &mut self,
    ident: &'static str,
    completer: Box<dyn Completer>
)
[src]

Add a new completer.

pub fn adjust_model(&mut self, completer_ident: &str) -> bool[src]

Adjust the model by using the specified completer.

pub fn complete_result(&self, selection: &TreeSelection) -> Option<String>[src]

Complete the result for the selection using the current completer.

pub fn current_completer(&self) -> Option<&dyn Completer>[src]

Get the current completer.

pub fn current_completer_mut(&mut self) -> Option<&mut Box<dyn Completer>>[src]

Get the current completer.

pub fn current_completer_ident(&self) -> &str[src]

Get the current completer ident.

pub fn filter(&mut self, input: &str) -> Option<ListStore>[src]

Filter the rows from the input.

pub fn set_completers(&mut self, completers: Completers)[src]

Set all the completers.

Auto Trait Implementations

Blanket Implementations

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 = !

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.

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

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

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