pub struct Choices<'a> { /* private fields */ }
Implementations§
source§impl<'a> Choices<'a>
impl<'a> Choices<'a>
pub fn new( max_choices: usize, choices: &'a [Choice<'_>], show_scores: bool ) -> Choices<'a>
pub fn initial_draw(&mut self, terminal: &mut Terminal)
pub fn previous(&mut self) -> String
pub fn next(&mut self) -> String
pub fn select(&self, terminal: &mut Terminal)
pub fn current_match(&self) -> &Choice<'_>
pub fn cancel(&self) -> String
pub fn filter(&mut self, query: &[char]) -> String
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Choices<'a>
impl<'a> Send for Choices<'a>
impl<'a> Sync for Choices<'a>
impl<'a> Unpin for Choices<'a>
impl<'a> UnwindSafe for Choices<'a>
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