pub fn take_lowest_uncomplete(&mut self) -> Option<Range<u32>> {
            if let Some(mut pre_range) = self.take_lowest_gap_or_unlogged() {
                loop {
                    if let Some(next_range) = self.get_lowest_gap_or_unlogged() {
                        if next_range.start.eq(&pre_range.end) {
                            pre_range.end = next_range.end;
                            let _ = self.take_lowest_gap_or_unlogged();
                        } else {
                            return Some(pre_range);
                        }
                    } else {
                        return Some(pre_range);
                    }
                }
            } else {
                None
            }
        }
/// Takes the lowest uncomplete(mixed range for unlogged and gap) from the sync_data
Takes the lowest uncomplete(mixed range for unlogged and gap) from the sync_data
Takes the lowest uncomplete ( mixed range for unlogged and gap ) from the sync_data
pub fn take_lowest_uncomplete(&mut self) -> Option<Range<u32>> {
            if let Some(mut pre_range) = self.take_lowest_gap_or_unlogged() {
                loop {
                    if let Some(next_range) = self.get_lowest_gap_or_unlogged() {
                        if next_range.start.eq(&pre_range.end) {
                            pre_range.end = next_range.end;
                            let _ = self.take_lowest_gap_or_unlogged();
                        } else {
                            return Some(pre_range);
                        }
                    } else {
                        return Some(pre_range);
                    }
                }
            } else {
                None
            }
        }
pub fn take_lowest_uncomplete ( & mut self ) -> Option < Range < u32 > > { if let Some ( mut pre_range ) = self . take_lowest_gap_or_unlogged ( ) { loop { if let Some ( next_range ) = self . get_lowest_gap_or_unlogged ( ) { if next_range . start . eq ( & pre_range . end ) { pre_range . end = next_range . end ; let _ = self . take_lowest_gap_or_unlogged ( ) ; } else { return Some ( pre_range ) ; } } else { return Some ( pre_range ) ; } } } else { None } }
Takes the lowest uncomplete(mixed range for unlogged and gap) from the sync_data
Takes the lowest uncomplete ( mixed range for unlogged and gap ) from the sync_data
&mut self