pub struct State { /* private fields */ }
Expand description
Current state of the program
Implementations§
source§impl State
impl State
pub fn new() -> Self
pub fn set_search(&mut self, search: Prompt)
pub fn query(&self) -> String
pub fn cursor_until_end(&self) -> usize
pub fn set_matches(&mut self, matches: (Vec<Candidate>, usize))
pub fn matches(&self) -> &Vec<Candidate>
pub fn pool_len(&self) -> usize
pub fn last_update(&self) -> &StateUpdate
pub fn select_up(&mut self)
pub fn select_down(&mut self)
pub fn selection_idx(&self) -> usize
pub fn selection(&self) -> Option<Text>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
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