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> {
1354
1354
}
1355
1355
}
1356
1356
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
+
1357
1364
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1358
1365
impl < T > AsRef < [ T ] > for Vec < T > {
1359
1366
fn as_ref ( & self ) -> & [ T ] {
1360
1367
self
1361
1368
}
1362
1369
}
1363
1370
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
+
1364
1378
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1365
1379
impl < ' a , T : Clone > From < & ' a [ T ] > for Vec < T > {
1366
1380
#[ cfg( not( test) ) ]
You can’t perform that action at this time.
0 commit comments