fn loop_over_iterator<'a, F>(
        &self,
        itr: &mut MergeIteartor<S>,
        mut cb: F,
    ) -> Result<(), failure::Error>
    where
        F: FnMut(Rc<Entry>) -> Result<(), failure::Error>,
    {
        loop {
            match itr.entry() {
                None => break,
                Some(entry) => {
                    cb(entry)?;
                    itr.next()?;
                }
            }
        }
        Ok(())
    }
/// loop over iterator is used to iterate over all the entries of the
/// given iterator and the each entry is passed to the given callback.
loop over iterator is used to iterate over all the entries of the
given iterator and the each entry is passed to the given callback.
loop over iterator is used to iterate over all the entries of the given iterator and the each entry is passed to the given callback .
fn loop_over_iterator<'a, F>(
        &self,
        itr: &mut MergeIteartor<S>,
        mut cb: F,
    ) -> Result<(), failure::Error>
    where
        F: FnMut(Rc<Entry>) -> Result<(), failure::Error>,
    {
        loop {
            match itr.entry() {
                None => break,
                Some(entry) => {
                    cb(entry)?;
                    itr.next()?;
                }
            }
        }
        Ok(())
    }
fn loop_over_iterator < ' a , F > ( & self , itr : & mut MergeIteartor < S > , mut cb : F , ) -> Result < ( ) , failure :: Error > where F : FnMut ( Rc < Entry > ) -> Result < ( ) , failure :: Error > , { loop { match itr . entry ( ) { None => break , Some ( entry ) => { cb ( entry ) ? ; itr . next ( ) ? ; } } } Ok ( ( ) ) }
loop over iterator is used to iterate over all the entries of the
given iterator and the each entry is passed to the given callback.
loop over iterator is used to iterate over all the entries of the given iterator and the each entry is passed to the given callback .
&self
itr
&mut MergeIteartor<S>
cb
F