pub struct FilteredListView<K: Clone + Eq + Hash, V: Clone + PartialEq> { /* private fields */ }Implementations§
Source§impl<K: Clone + Eq + Hash, V: Clone + PartialEq> FilteredListView<K, V>
impl<K: Clone + Eq + Hash, V: Clone + PartialEq> FilteredListView<K, V>
Sourcepub fn new(
label: impl Into<String>,
filter: impl Fn(&K, &V) -> bool + 'static,
) -> Self
pub fn new( label: impl Into<String>, filter: impl Fn(&K, &V) -> bool + 'static, ) -> Self
Create a new filtered list view with the given filter predicate.
Sourcepub fn total_count(&self) -> usize
pub fn total_count(&self) -> usize
Number of total items (before filtering).
Sourcepub fn visible_count(&self) -> usize
pub fn visible_count(&self) -> usize
Number of visible items (after filtering).
Trait Implementations§
Source§impl<K: Clone + Eq + Hash, V: Clone + PartialEq> IncrementalView<K, V> for FilteredListView<K, V>
impl<K: Clone + Eq + Hash, V: Clone + PartialEq> IncrementalView<K, V> for FilteredListView<K, V>
Source§fn apply_delta(&mut self, batch: &DeltaBatch<K, V>) -> DeltaBatch<K, V>
fn apply_delta(&mut self, batch: &DeltaBatch<K, V>) -> DeltaBatch<K, V>
Apply a batch of input deltas and produce output deltas. Read more
Source§fn full_recompute(&self) -> Vec<(K, V)>
fn full_recompute(&self) -> Vec<(K, V)>
Fully recompute the materialized view from scratch. Read more
Source§fn materialized_size(&self) -> usize
fn materialized_size(&self) -> usize
Number of entries in the materialized view.
Source§fn domain(&self) -> ViewDomain
fn domain(&self) -> ViewDomain
Domain of this view (for logging and evidence).
Auto Trait Implementations§
impl<K, V> Freeze for FilteredListView<K, V>
impl<K, V> !RefUnwindSafe for FilteredListView<K, V>
impl<K, V> !Send for FilteredListView<K, V>
impl<K, V> !Sync for FilteredListView<K, V>
impl<K, V> Unpin for FilteredListView<K, V>
impl<K, V> UnsafeUnpin for FilteredListView<K, V>
impl<K, V> !UnwindSafe for FilteredListView<K, V>
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