@@ -736,46 +736,6 @@ pub struct Iter<'a, T: 'a> {
736736unsafe impl < ' a , T : Sync > Sync for Iter < ' a , T > { }
737737unsafe impl < ' a , T : Sync > Send for Iter < ' a , T > { }
738738
739- #[ unstable( feature = "core" ) ]
740- impl < ' a , T > ops:: Index < ops:: Range < usize > > for Iter < ' a , T > {
741- type Output = [ T ] ;
742-
743- #[ inline]
744- fn index ( & self , index : ops:: Range < usize > ) -> & [ T ] {
745- self . as_slice ( ) . index ( index)
746- }
747- }
748-
749- #[ unstable( feature = "core" ) ]
750- impl < ' a , T > ops:: Index < ops:: RangeTo < usize > > for Iter < ' a , T > {
751- type Output = [ T ] ;
752-
753- #[ inline]
754- fn index ( & self , index : ops:: RangeTo < usize > ) -> & [ T ] {
755- self . as_slice ( ) . index ( index)
756- }
757- }
758-
759- #[ unstable( feature = "core" ) ]
760- impl < ' a , T > ops:: Index < ops:: RangeFrom < usize > > for Iter < ' a , T > {
761- type Output = [ T ] ;
762-
763- #[ inline]
764- fn index ( & self , index : ops:: RangeFrom < usize > ) -> & [ T ] {
765- self . as_slice ( ) . index ( index)
766- }
767- }
768-
769- #[ unstable( feature = "core" ) ]
770- impl < ' a , T > ops:: Index < RangeFull > for Iter < ' a , T > {
771- type Output = [ T ] ;
772-
773- #[ inline]
774- fn index ( & self , _index : RangeFull ) -> & [ T ] {
775- self . as_slice ( )
776- }
777- }
778-
779739impl < ' a , T > Iter < ' a , T > {
780740 /// View the underlying data as a subslice of the original data.
781741 ///
@@ -833,76 +793,6 @@ pub struct IterMut<'a, T: 'a> {
833793unsafe impl < ' a , T : Sync > Sync for IterMut < ' a , T > { }
834794unsafe impl < ' a , T : Send > Send for IterMut < ' a , T > { }
835795
836- #[ unstable( feature = "core" ) ]
837- impl < ' a , T > ops:: Index < ops:: Range < usize > > for IterMut < ' a , T > {
838- type Output = [ T ] ;
839-
840- #[ inline]
841- fn index ( & self , index : ops:: Range < usize > ) -> & [ T ] {
842- self . index ( RangeFull ) . index ( index)
843- }
844- }
845- #[ unstable( feature = "core" ) ]
846- impl < ' a , T > ops:: Index < ops:: RangeTo < usize > > for IterMut < ' a , T > {
847- type Output = [ T ] ;
848-
849- #[ inline]
850- fn index ( & self , index : ops:: RangeTo < usize > ) -> & [ T ] {
851- self . index ( RangeFull ) . index ( index)
852- }
853- }
854- #[ unstable( feature = "core" ) ]
855- impl < ' a , T > ops:: Index < ops:: RangeFrom < usize > > for IterMut < ' a , T > {
856- type Output = [ T ] ;
857-
858- #[ inline]
859- fn index ( & self , index : ops:: RangeFrom < usize > ) -> & [ T ] {
860- self . index ( RangeFull ) . index ( index)
861- }
862- }
863- #[ unstable( feature = "core" ) ]
864- impl < ' a , T > ops:: Index < RangeFull > for IterMut < ' a , T > {
865- type Output = [ T ] ;
866-
867- #[ inline]
868- fn index ( & self , _index : RangeFull ) -> & [ T ] {
869- make_slice ! ( T => & [ T ] : self . ptr, self . end)
870- }
871- }
872-
873- #[ unstable( feature = "core" ) ]
874- impl < ' a , T > ops:: IndexMut < ops:: Range < usize > > for IterMut < ' a , T > {
875- #[ inline]
876- fn index_mut ( & mut self , index : ops:: Range < usize > ) -> & mut [ T ] {
877- self . index_mut ( RangeFull ) . index_mut ( index)
878- }
879- }
880- #[ unstable( feature = "core" ) ]
881- impl < ' a , T > ops:: IndexMut < ops:: RangeTo < usize > > for IterMut < ' a , T > {
882-
883- #[ inline]
884- fn index_mut ( & mut self , index : ops:: RangeTo < usize > ) -> & mut [ T ] {
885- self . index_mut ( RangeFull ) . index_mut ( index)
886- }
887- }
888- #[ unstable( feature = "core" ) ]
889- impl < ' a , T > ops:: IndexMut < ops:: RangeFrom < usize > > for IterMut < ' a , T > {
890-
891- #[ inline]
892- fn index_mut ( & mut self , index : ops:: RangeFrom < usize > ) -> & mut [ T ] {
893- self . index_mut ( RangeFull ) . index_mut ( index)
894- }
895- }
896- #[ unstable( feature = "core" ) ]
897- impl < ' a , T > ops:: IndexMut < RangeFull > for IterMut < ' a , T > {
898-
899- #[ inline]
900- fn index_mut ( & mut self , _index : RangeFull ) -> & mut [ T ] {
901- make_mut_slice ! ( T => & mut [ T ] : self . ptr, self . end)
902- }
903- }
904-
905-
906796impl < ' a , T > IterMut < ' a , T > {
907797 /// View the underlying data as a subslice of the original data.
908798 ///
0 commit comments