File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -1354,13 +1354,27 @@ impl<T> AsRef<Vec<T>> for Vec<T> {
13541354 }
13551355}
13561356
1357+ #[ stable( feature = "vec_as_mut" , since = "1.5.0" ) ]
1358+ impl < T > AsMut < Vec < T > > for Vec < T > {
1359+ fn as_mut ( & mut self ) -> & mut Vec < T > {
1360+ self
1361+ }
1362+ }
1363+
13571364#[ stable( feature = "rust1" , since = "1.0.0" ) ]
13581365impl < T > AsRef < [ T ] > for Vec < T > {
13591366 fn as_ref ( & self ) -> & [ T ] {
13601367 self
13611368 }
13621369}
13631370
1371+ #[ stable( feature = "vec_as_mut" , since = "1.5.0" ) ]
1372+ impl < T > AsMut < [ T ] > for Vec < T > {
1373+ fn as_mut ( & mut self ) -> & mut [ T ] {
1374+ self
1375+ }
1376+ }
1377+
13641378#[ stable( feature = "rust1" , since = "1.0.0" ) ]
13651379impl < ' a , T : Clone > From < & ' a [ T ] > for Vec < T > {
13661380 #[ cfg( not( test) ) ]
You can’t perform that action at this time.
0 commit comments