pub struct ColumnSearchState {
pub pattern: String,
pub matching_columns: Vec<(usize, String)>,
pub current_match: usize,
pub is_active: bool,
pub history: VecDeque<ColumnSearchHistoryEntry>,
pub total_searches: usize,
pub last_search_time: Option<Instant>,
}
Expand description
Column search state management
Fields§
§pattern: String
Current search pattern
matching_columns: Vec<(usize, String)>
Matching columns (index, column_name
)
current_match: usize
Current match index (index into matching_columns
)
is_active: bool
Whether column search is active
history: VecDeque<ColumnSearchHistoryEntry>
Search history
total_searches: usize
Total searches performed
last_search_time: Option<Instant>
Last search time
Implementations§
Source§impl ColumnSearchState
impl ColumnSearchState
pub fn new() -> Self
Sourcepub fn set_matches(&mut self, matches: Vec<(usize, String)>)
pub fn set_matches(&mut self, matches: Vec<(usize, String)>)
Set search results
Sourcepub fn next_match(&mut self) -> Option<(usize, String)>
pub fn next_match(&mut self) -> Option<(usize, String)>
Navigate to next match
Sourcepub fn prev_match(&mut self) -> Option<(usize, String)>
pub fn prev_match(&mut self) -> Option<(usize, String)>
Navigate to previous match
Sourcepub fn current_match(&self) -> Option<(usize, String)>
pub fn current_match(&self) -> Option<(usize, String)>
Get current match
Trait Implementations§
Source§impl Clone for ColumnSearchState
impl Clone for ColumnSearchState
Source§fn clone(&self) -> ColumnSearchState
fn clone(&self) -> ColumnSearchState
Returns a duplicate of the value. Read more
1.0.0 · 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 ColumnSearchState
impl Debug for ColumnSearchState
Auto Trait Implementations§
impl Freeze for ColumnSearchState
impl RefUnwindSafe for ColumnSearchState
impl Send for ColumnSearchState
impl Sync for ColumnSearchState
impl Unpin for ColumnSearchState
impl UnwindSafe for ColumnSearchState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more