1
1
use crate :: db:: TransactionGuard ;
2
2
use crate :: sealed:: Sealed ;
3
3
use crate :: tree_store:: {
4
- AccessGuardMut , Btree , BtreeExtractIf , BtreeHeader , BtreeMut , BtreeRangeIter , PageHint ,
5
- PageNumber , RawBtree , TransactionalMemory , MAX_PAIR_LENGTH , MAX_VALUE_LENGTH ,
4
+ AccessGuardMut , Btree , BtreeExtractIf , BtreeHeader , BtreeMut , BtreeRangeIter , MAX_PAIR_LENGTH ,
5
+ MAX_VALUE_LENGTH , PageHint , PageNumber , RawBtree , TransactionalMemory ,
6
6
} ;
7
7
use crate :: types:: { Key , MutInPlaceValue , Value } ;
8
8
use crate :: { AccessGuard , StorageError , WriteTransaction } ;
@@ -558,23 +558,23 @@ pub struct ExtractIf<
558
558
}
559
559
560
560
impl <
561
- ' a ,
562
- K : Key + ' static ,
563
- V : Value + ' static ,
564
- F : for < ' f > FnMut ( K :: SelfType < ' f > , V :: SelfType < ' f > ) -> bool ,
565
- > ExtractIf < ' a , K , V , F >
561
+ ' a ,
562
+ K : Key + ' static ,
563
+ V : Value + ' static ,
564
+ F : for < ' f > FnMut ( K :: SelfType < ' f > , V :: SelfType < ' f > ) -> bool ,
565
+ > ExtractIf < ' a , K , V , F >
566
566
{
567
567
fn new ( inner : BtreeExtractIf < ' a , K , V , F > ) -> Self {
568
568
Self { inner }
569
569
}
570
570
}
571
571
572
572
impl <
573
- ' a ,
574
- K : Key + ' static ,
575
- V : Value + ' static ,
576
- F : for < ' f > FnMut ( K :: SelfType < ' f > , V :: SelfType < ' f > ) -> bool ,
577
- > Iterator for ExtractIf < ' a , K , V , F >
573
+ ' a ,
574
+ K : Key + ' static ,
575
+ V : Value + ' static ,
576
+ F : for < ' f > FnMut ( K :: SelfType < ' f > , V :: SelfType < ' f > ) -> bool ,
577
+ > Iterator for ExtractIf < ' a , K , V , F >
578
578
{
579
579
type Item = Result < ( AccessGuard < ' a , K > , AccessGuard < ' a , V > ) > ;
580
580
@@ -590,10 +590,10 @@ impl<
590
590
}
591
591
592
592
impl <
593
- K : Key + ' static ,
594
- V : Value + ' static ,
595
- F : for < ' f > FnMut ( K :: SelfType < ' f > , V :: SelfType < ' f > ) -> bool ,
596
- > DoubleEndedIterator for ExtractIf < ' _ , K , V , F >
593
+ K : Key + ' static ,
594
+ V : Value + ' static ,
595
+ F : for < ' f > FnMut ( K :: SelfType < ' f > , V :: SelfType < ' f > ) -> bool ,
596
+ > DoubleEndedIterator for ExtractIf < ' _ , K , V , F >
597
597
{
598
598
fn next_back ( & mut self ) -> Option < Self :: Item > {
599
599
let entry = self . inner . next_back ( ) ?;
0 commit comments