Trait timely::progress::frontier::MutableAntichainFilter
source · pub trait MutableAntichainFilter<T: PartialOrder + Ord + Clone> {
// Required method
fn filter_through(
self,
antichain: &mut MutableAntichain<T>,
) -> Drain<'_, [(T, i64); 2]>;
}
Expand description
Extension trait for filtering time changes through antichains.
Required Methods§
sourcefn filter_through(
self,
antichain: &mut MutableAntichain<T>,
) -> Drain<'_, [(T, i64); 2]>
fn filter_through( self, antichain: &mut MutableAntichain<T>, ) -> Drain<'_, [(T, i64); 2]>
Filters time changes through an antichain.
§Examples
use timely::progress::frontier::{MutableAntichain, MutableAntichainFilter};
let mut frontier = MutableAntichain::new_bottom(1u64);
let changes =
vec![(1, -1), (2, 7)]
.filter_through(&mut frontier)
.collect::<Vec<_>>();
assert!(changes == vec![(1, -1), (2, 1)]);