pub fn take_lowest_gap_or_unlogged(&mut self) -> Option<Range<u32>> {
            let lowest_gap = self.gaps.last();
            let lowest_unlogged = self.synced_but_unlogged.last();
            match (lowest_gap, lowest_unlogged) {
                (Some(gap), Some(unlogged)) => {
                    if gap.start < unlogged.start {
                        self.gaps.pop()
                    } else {
                        self.synced_but_unlogged.pop()
                    }
                }
                (Some(_), None) => self.gaps.pop(),
                (None, Some(_)) => self.synced_but_unlogged.pop(),
                _ => None,
            }
        }
/// Takes the lowest unlogged or gap from the sync_data
Takes the lowest unlogged or gap from the sync_data
Takes the lowest unlogged or gap from the sync_data
pub fn take_lowest_gap_or_unlogged(&mut self) -> Option<Range<u32>> {
            let lowest_gap = self.gaps.last();
            let lowest_unlogged = self.synced_but_unlogged.last();
            match (lowest_gap, lowest_unlogged) {
                (Some(gap), Some(unlogged)) => {
                    if gap.start < unlogged.start {
                        self.gaps.pop()
                    } else {
                        self.synced_but_unlogged.pop()
                    }
                }
                (Some(_), None) => self.gaps.pop(),
                (None, Some(_)) => self.synced_but_unlogged.pop(),
                _ => None,
            }
        }
pub fn take_lowest_gap_or_unlogged ( & mut self ) -> Option < Range < u32 > > { let lowest_gap = self . gaps . last ( ) ; let lowest_unlogged = self . synced_but_unlogged . last ( ) ; match ( lowest_gap , lowest_unlogged ) { ( Some ( gap ) , Some ( unlogged ) ) => { if gap . start < unlogged . start { self . gaps . pop ( ) } else { self . synced_but_unlogged . pop ( ) } } ( Some ( _ ) , None ) => self . gaps . pop ( ) , ( None , Some ( _ ) ) => self . synced_but_unlogged . pop ( ) , _ => None , } }
Takes the lowest unlogged or gap from the sync_data
Takes the lowest unlogged or gap from the sync_data
&mut self