[−][src]Struct mg::completion::Completion
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]
&mut self,
ident: &'static str,
completer: Box<dyn Completer>
)
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
impl !Send for Completion
impl !Sync for Completion
impl Unpin for Completion
impl !UnwindSafe for Completion
impl !RefUnwindSafe for Completion
Blanket Implementations
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 = !
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,