pub struct FilterState { /* private fields */ }Expand description
Filter state management
Implementations§
Source§impl FilterState
impl FilterState
Sourcepub fn filter(&self) -> EntryFilter
pub fn filter(&self) -> EntryFilter
Get the current filter
Sourcepub fn group_mode(&self) -> GroupMode
pub fn group_mode(&self) -> GroupMode
Get the current group mode
Sourcepub fn sort_order(&self) -> SortOrder
pub fn sort_order(&self) -> SortOrder
Get the current sort order
Sourcepub fn cycle_filter(&mut self)
pub fn cycle_filter(&mut self)
Cycle the entry type filter (forward)
Sourcepub fn cycle_filter_backward(&mut self)
pub fn cycle_filter_backward(&mut self)
Cycle the entry type filter (backward)
Sourcepub fn set_filter(&mut self, filter: EntryFilter)
pub fn set_filter(&mut self, filter: EntryFilter)
Set a specific filter
Sourcepub fn cycle_group_mode(&mut self)
pub fn cycle_group_mode(&mut self)
Cycle to the next group mode
Sourcepub fn cycle_group_mode_backward(&mut self)
pub fn cycle_group_mode_backward(&mut self)
Cycle to the previous group mode
Sourcepub fn toggle_sort_order(&mut self)
pub fn toggle_sort_order(&mut self)
Toggle sort order
Sourcepub fn update_visible_entries(&self, data: &mut EntryData, search_query: &str)
pub fn update_visible_entries(&self, data: &mut EntryData, search_query: &str)
Update visible entries based on current filter, search query, grouping, and sorting
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 (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 FilterState
impl Debug for FilterState
Auto Trait Implementations§
impl Freeze for FilterState
impl RefUnwindSafe for FilterState
impl Send for FilterState
impl Sync for FilterState
impl Unpin for FilterState
impl UnsafeUnpin 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> 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