pub struct Finder { /* private fields */ }
Implementations§
Source§impl Finder
impl Finder
pub fn new(commands: Vec<Command>, query: String) -> Finder
pub fn new_without_query(commands: Vec<Command>) -> Finder
pub fn new_with_bash_history() -> Result<Finder, Box<dyn Error>>
pub fn update_query(&mut self, new_query: String)
pub fn get_matched_commands<'a, 'b>( commands: &'a Vec<Command>, query: &'b String, ) -> Vec<&'a Command>
pub fn render(&mut self) -> Result<(), Box<dyn Error>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Finder
impl RefUnwindSafe for Finder
impl Send for Finder
impl Sync for Finder
impl Unpin for Finder
impl UnwindSafe for Finder
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