pub struct AskAutoCompleter { /* private fields */ }
Trait Implementations§
Source§impl Autocomplete for AskAutoCompleter
impl Autocomplete for AskAutoCompleter
Source§fn get_suggestions(
&mut self,
input: &str,
) -> Result<Vec<String>, CustomUserError>
fn get_suggestions( &mut self, input: &str, ) -> Result<Vec<String>, CustomUserError>
List of input suggestions to be displayed to the user upon typing the
text input. Read more
Source§fn get_completion(
&mut self,
input: &str,
highlighted_suggestion: Option<String>,
) -> Result<Replacement, CustomUserError>
fn get_completion( &mut self, input: &str, highlighted_suggestion: Option<String>, ) -> Result<Replacement, CustomUserError>
Standalone autocompletion that can be implemented based solely on the user’s
input. Read more
Source§impl Clone for AskAutoCompleter
impl Clone for AskAutoCompleter
Source§fn clone(&self) -> AskAutoCompleter
fn clone(&self) -> AskAutoCompleter
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for AskAutoCompleter
impl Default for AskAutoCompleter
Source§fn default() -> AskAutoCompleter
fn default() -> AskAutoCompleter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AskAutoCompleter
impl RefUnwindSafe for AskAutoCompleter
impl Send for AskAutoCompleter
impl Sync for AskAutoCompleter
impl Unpin for AskAutoCompleter
impl UnwindSafe for AskAutoCompleter
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