@@ -581,11 +581,12 @@ where
581
581
}
582
582
}
583
583
584
- impl < T , Idx , K > SortedLinkedListView < T , Idx , K >
584
+ impl < T , Idx , K , S > SortedLinkedListInner < T , Idx , K , S >
585
585
where
586
586
T : Ord ,
587
587
Idx : SortedLinkedListIndex ,
588
588
K : Kind ,
589
+ S : SortedLinkedListStorage < T , Idx > + ?Sized ,
589
590
{
590
591
/// Get an iterator over the sorted list.
591
592
///
@@ -606,7 +607,7 @@ where
606
607
/// ```
607
608
pub fn iter ( & self ) -> IterView < ' _ , T , Idx , K > {
608
609
IterView {
609
- list : self ,
610
+ list : S :: as_view ( self ) ,
610
611
index : self . head ,
611
612
}
612
613
}
@@ -645,7 +646,7 @@ where
645
646
is_head : true ,
646
647
prev_index : Idx :: none ( ) ,
647
648
index : self . head ,
648
- list : self ,
649
+ list : S :: as_mut_view ( self ) ,
649
650
maybe_changed : false ,
650
651
} ) ;
651
652
}
@@ -658,7 +659,7 @@ where
658
659
is_head : false ,
659
660
prev_index : unsafe { Idx :: new_unchecked ( current) } ,
660
661
index : unsafe { Idx :: new_unchecked ( next) } ,
661
- list : self ,
662
+ list : S :: as_mut_view ( self ) ,
662
663
maybe_changed : false ,
663
664
} ) ;
664
665
}
@@ -868,11 +869,12 @@ where
868
869
// }
869
870
// }
870
871
871
- impl < T , Idx , K > fmt:: Debug for SortedLinkedListView < T , Idx , K >
872
+ impl < T , Idx , K , S > fmt:: Debug for SortedLinkedListInner < T , Idx , K , S >
872
873
where
873
874
T : Ord + core:: fmt:: Debug ,
874
875
Idx : SortedLinkedListIndex ,
875
876
K : Kind ,
877
+ S : ?Sized + SortedLinkedListStorage < T , Idx > ,
876
878
{
877
879
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
878
880
f. debug_list ( ) . entries ( self . iter ( ) ) . finish ( )
0 commit comments