pub struct SortedFilter { /* private fields */ }Expand description
Uniq filter implementation to only remove consecutive duplicates.
This is the fastest filter (although not by much), and the best in
terms of memory efficiency as it only requires a single value stored
in the filter memory at once. It operates in the same was as the Unix
uniq utility, and thus requires your data be sorted prior to any
execution.
Remember that repeatedly running Runiq on the same input would be a good candidate for sorting your data initially and then making use of this filter to optimize memory usage going forward.
Trait Implementations§
Source§impl Clone for SortedFilter
impl Clone for SortedFilter
Source§fn clone(&self) -> SortedFilter
fn clone(&self) -> SortedFilter
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 SortedFilter
impl Debug for SortedFilter
Auto Trait Implementations§
impl Freeze for SortedFilter
impl RefUnwindSafe for SortedFilter
impl Send for SortedFilter
impl Sync for SortedFilter
impl Unpin for SortedFilter
impl UnwindSafe for SortedFilter
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