@@ -1143,13 +1143,13 @@ impl<'a, T:Clone> MutableCloneableSlice<T> for &'a mut [T] {
11431143
11441144/// Data that is viewable as a slice.
11451145#[ unstable = "may merge with other traits" ]
1146- pub trait Slice < T > {
1146+ pub trait AsSlice < T > {
11471147 /// Work with `self` as a slice.
11481148 fn as_slice < ' a > ( & ' a self ) -> & ' a [ T ] ;
11491149}
11501150
11511151#[ unstable = "trait is unstable" ]
1152- impl <' a , T > Slice < T > for & ' a [ T ] {
1152+ impl <' a , T > AsSlice < T > for & ' a [ T ] {
11531153 #[ inline( always) ]
11541154 fn as_slice < ' a > ( & ' a self ) -> & ' a [ T ] { * self }
11551155}
@@ -1828,7 +1828,7 @@ impl<'a,T:PartialEq> PartialEq for &'a [T] {
18281828impl <' a, T : Eq > Eq for & ' a [ T ] { }
18291829
18301830#[ unstable = "waiting for DST" ]
1831- impl <' a, T : PartialEq , V : Slice <T >> Equiv <V > for & ' a [ T ] {
1831+ impl <' a, T : PartialEq , V : AsSlice <T >> Equiv <V > for & ' a [ T ] {
18321832 #[ inline]
18331833 fn equiv( & self , other: & V ) -> bool { self . as_slice( ) == other. as_slice( ) }
18341834}
@@ -1849,7 +1849,7 @@ impl<'a,T:PartialEq> PartialEq for &'a mut [T] {
18491849impl <' a, T : Eq > Eq for & ' a mut [ T ] { }
18501850
18511851#[ unstable = "waiting for DST" ]
1852- impl <' a, T : PartialEq , V : Slice <T >> Equiv <V > for & ' a mut [ T ] {
1852+ impl <' a, T : PartialEq , V : AsSlice <T >> Equiv <V > for & ' a mut [ T ] {
18531853 #[ inline]
18541854 fn equiv( & self , other: & V ) -> bool { self . as_slice( ) == other. as_slice( ) }
18551855}
0 commit comments