pub struct AutocompleteManager { /* private fields */ }Expand description
Global autocomplete manager.
Implementations§
Source§impl AutocompleteManager
impl AutocompleteManager
Sourcepub fn set_provider(&self, provider: Arc<dyn AutocompleteProvider>)
pub fn set_provider(&self, provider: Arc<dyn AutocompleteProvider>)
Set the provider.
Sourcepub fn get_suggestions(
&self,
input: &str,
cursor: usize,
) -> Option<AutocompleteSuggestions>
pub fn get_suggestions( &self, input: &str, cursor: usize, ) -> Option<AutocompleteSuggestions>
Get suggestions.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for AutocompleteManager
impl RefUnwindSafe for AutocompleteManager
impl Send for AutocompleteManager
impl Sync for AutocompleteManager
impl Unpin for AutocompleteManager
impl UnsafeUnpin for AutocompleteManager
impl UnwindSafe for AutocompleteManager
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