pub struct Picker { /* private fields */ }
Implementations
sourceimpl Picker
impl Picker
pub fn cursor(&self) -> Option<usize>
pub fn scroll(&self) -> usize
pub fn len(&self) -> usize
pub fn clear_cursor(&mut self)
pub fn move_cursor(&mut self, offset: isize)
pub fn update_scroll(&mut self, max_height: usize) -> usize
pub fn clear(&mut self)
pub fn add_custom_entry(&mut self, name: &str)
pub fn add_custom_entry_fmt(&mut self, args: Arguments<'_>)
pub fn add_custom_filtered_entries<'picker, 'pattern>(
&'picker mut self,
pattern: &'pattern str
) -> AddCustomFilteredEntryGuard<'picker, 'pattern>
pub fn sort_filtered_entries(&mut self)
pub fn filter(&mut self, word_indices: WordIndicesIter<'_>, pattern: &str)
pub fn filter_completion(
&mut self,
word_indices: WordIndicesIter<'_>,
pattern: &str
)
pub fn current_entry<'a>(
&'a self,
words: &'a WordDatabase
) -> Option<(EntrySource, &'a str)>
pub fn entries<'a>(
&'a self,
words: &'a WordDatabase
) -> impl 'a + ExactSizeIterator<Item = &'a str>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Picker
impl Send for Picker
impl Sync for Picker
impl Unpin for Picker
impl UnwindSafe for Picker
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more