pub struct FilterState {
pub pattern: String,
pub filtered_indices: Vec<usize>,
pub filtered_data: Option<Vec<Vec<String>>>,
pub is_active: bool,
pub case_insensitive: bool,
pub total_filters: usize,
pub last_filter_time: Option<Instant>,
pub history: VecDeque<FilterHistoryEntry>,
pub max_history: usize,
}
Expand description
Filter state for filtering results
Fields§
§pattern: String
§filtered_indices: Vec<usize>
§filtered_data: Option<Vec<Vec<String>>>
§is_active: bool
§case_insensitive: bool
§total_filters: usize
§last_filter_time: Option<Instant>
§history: VecDeque<FilterHistoryEntry>
§max_history: usize
Implementations§
Source§impl FilterState
impl FilterState
pub fn new() -> Self
pub fn clear(&mut self)
Sourcepub fn set_pattern(&mut self, pattern: String)
pub fn set_pattern(&mut self, pattern: String)
Set filter pattern and mark as active
Sourcepub fn set_filtered_indices(&mut self, indices: Vec<usize>)
pub fn set_filtered_indices(&mut self, indices: Vec<usize>)
Set filtered indices from filter operation
Trait Implementations§
Source§impl Clone for FilterState
impl Clone for FilterState
Source§fn clone(&self) -> FilterState
fn clone(&self) -> FilterState
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 moreAuto Trait Implementations§
impl Freeze for FilterState
impl RefUnwindSafe for FilterState
impl Send for FilterState
impl Sync for FilterState
impl Unpin for FilterState
impl UnwindSafe for FilterState
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