use crate::iterator::LatchIterator;
pub trait IntoLatchIterator<Iter: Iterator> {
fn latch<StartPred, StopPred>(
self,
start_predicate: StartPred,
stop_predicate: StopPred,
) -> LatchIterator<Iter, StartPred, StopPred>
where
StartPred: FnMut(&Iter::Item) -> bool,
StopPred: FnMut(&Iter::Item) -> bool;
}