@@ -402,6 +402,8 @@ impl<T> VecDeque<T> {
402
402
403
403
/// Retrieves an element in the `VecDeque` by index.
404
404
///
405
+ /// Element at index 0 is the front of the queue.
406
+ ///
405
407
/// # Examples
406
408
///
407
409
/// ```
@@ -425,6 +427,8 @@ impl<T> VecDeque<T> {
425
427
426
428
/// Retrieves an element in the `VecDeque` mutably by index.
427
429
///
430
+ /// Element at index 0 is the front of the queue.
431
+ ///
428
432
/// # Examples
429
433
///
430
434
/// ```
@@ -456,6 +460,8 @@ impl<T> VecDeque<T> {
456
460
///
457
461
/// Fails if there is no element with either index.
458
462
///
463
+ /// Element at index 0 is the front of the queue.
464
+ ///
459
465
/// # Examples
460
466
///
461
467
/// ```
@@ -1180,6 +1186,8 @@ impl<T> VecDeque<T> {
1180
1186
///
1181
1187
/// Returns `None` if `index` is out of bounds.
1182
1188
///
1189
+ /// Element at index 0 is the front of the queue.
1190
+ ///
1183
1191
/// # Examples
1184
1192
///
1185
1193
/// ```
@@ -1214,6 +1222,8 @@ impl<T> VecDeque<T> {
1214
1222
///
1215
1223
/// Returns `None` if `index` is out of bounds.
1216
1224
///
1225
+ /// Element at index 0 is the front of the queue.
1226
+ ///
1217
1227
/// # Examples
1218
1228
///
1219
1229
/// ```
@@ -1245,6 +1255,8 @@ impl<T> VecDeque<T> {
1245
1255
/// end is closer to the insertion point will be moved to make room,
1246
1256
/// and all the affected elements will be moved to new positions.
1247
1257
///
1258
+ /// Element at index 0 is the front of the queue.
1259
+ ///
1248
1260
/// # Panics
1249
1261
///
1250
1262
/// Panics if `index` is greater than `VecDeque`'s length
@@ -1472,6 +1484,8 @@ impl<T> VecDeque<T> {
1472
1484
/// room, and all the affected elements will be moved to new positions.
1473
1485
/// Returns `None` if `index` is out of bounds.
1474
1486
///
1487
+ /// Element at index 0 is the front of the queue.
1488
+ ///
1475
1489
/// # Examples
1476
1490
///
1477
1491
/// ```
@@ -1651,6 +1665,8 @@ impl<T> VecDeque<T> {
1651
1665
///
1652
1666
/// Note that the capacity of `self` does not change.
1653
1667
///
1668
+ /// Element at index 0 is the front of the queue.
1669
+ ///
1654
1670
/// # Panics
1655
1671
///
1656
1672
/// Panics if `at > len`
0 commit comments