pub struct TextWithAutocomplete<I: Clone, const S: usize> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<I: Clone, const S: usize> Autocomplete for TextWithAutocomplete<I, S>
impl<I: Clone, const S: usize> Autocomplete for TextWithAutocomplete<I, S>
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
Auto Trait Implementations§
impl<I, const S: usize> Freeze for TextWithAutocomplete<I, S>
impl<I, const S: usize> RefUnwindSafe for TextWithAutocomplete<I, S>where
I: RefUnwindSafe,
impl<I, const S: usize> Send for TextWithAutocomplete<I, S>where
I: Send,
impl<I, const S: usize> Sync for TextWithAutocomplete<I, S>where
I: Sync,
impl<I, const S: usize> Unpin for TextWithAutocomplete<I, S>where
I: Unpin,
impl<I, const S: usize> UnwindSafe for TextWithAutocomplete<I, S>where
I: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more