pub struct HistorySearchState {
pub query: String,
pub selected: usize,
}Expand description
Cross-session prompt-history search state (Ctrl+R), live while
TuiState::input_focus is InputFocus::HistorySearch.
Fields§
§query: StringWhat the user has typed to narrow the search.
selected: usizeIndex into the CURRENT history.search(query) result list — 0 is
the most recent match.
Trait Implementations§
Source§impl Clone for HistorySearchState
impl Clone for HistorySearchState
Source§fn clone(&self) -> HistorySearchState
fn clone(&self) -> HistorySearchState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HistorySearchState
impl Debug for HistorySearchState
Source§impl Default for HistorySearchState
impl Default for HistorySearchState
Source§fn default() -> HistorySearchState
fn default() -> HistorySearchState
Returns the “default value” for a type. Read more
impl Eq for HistorySearchState
Source§impl PartialEq for HistorySearchState
impl PartialEq for HistorySearchState
impl StructuralPartialEq for HistorySearchState
Auto Trait Implementations§
impl Freeze for HistorySearchState
impl RefUnwindSafe for HistorySearchState
impl Send for HistorySearchState
impl Sync for HistorySearchState
impl Unpin for HistorySearchState
impl UnsafeUnpin for HistorySearchState
impl UnwindSafe for HistorySearchState
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.