@@ -2403,6 +2403,12 @@ impl<T> VecDeque<T> {
2403
2403
/// [`Result::Err`] is returned, containing the index where a matching
2404
2404
/// element could be inserted while maintaining sorted order.
2405
2405
///
2406
+ /// See also [`binary_search_by`], [`binary_search_by_key`], and [`partition_point`].
2407
+ ///
2408
+ /// [`binary_search_by`]: VecDeque::binary_search_by
2409
+ /// [`binary_search_by_key`]: VecDeque::binary_search_by_key
2410
+ /// [`partition_point`]: VecDeque::partition_point
2411
+ ///
2406
2412
/// # Examples
2407
2413
///
2408
2414
/// Looks up a series of four elements. The first is found, with a
@@ -2457,6 +2463,12 @@ impl<T> VecDeque<T> {
2457
2463
/// [`Result::Err`] is returned, containing the index where a matching
2458
2464
/// element could be inserted while maintaining sorted order.
2459
2465
///
2466
+ /// See also [`binary_search`], [`binary_search_by_key`], and [`partition_point`].
2467
+ ///
2468
+ /// [`binary_search`]: VecDeque::binary_search
2469
+ /// [`binary_search_by_key`]: VecDeque::binary_search_by_key
2470
+ /// [`partition_point`]: VecDeque::partition_point
2471
+ ///
2460
2472
/// # Examples
2461
2473
///
2462
2474
/// Looks up a series of four elements. The first is found, with a
@@ -2495,15 +2507,21 @@ impl<T> VecDeque<T> {
2495
2507
/// Binary searches this sorted `VecDeque` with a key extraction function.
2496
2508
///
2497
2509
/// Assumes that the `VecDeque` is sorted by the key, for instance with
2498
- /// [`make_contiguous().sort_by_key()`](#method.make_contiguous) using the same
2499
- /// key extraction function.
2510
+ /// [`make_contiguous().sort_by_key()`] using the same key extraction function.
2500
2511
///
2501
2512
/// If the value is found then [`Result::Ok`] is returned, containing the
2502
2513
/// index of the matching element. If there are multiple matches, then any
2503
2514
/// one of the matches could be returned. If the value is not found then
2504
2515
/// [`Result::Err`] is returned, containing the index where a matching
2505
2516
/// element could be inserted while maintaining sorted order.
2506
2517
///
2518
+ /// See also [`binary_search`], [`binary_search_by`], and [`partition_point`].
2519
+ ///
2520
+ /// [`make_contiguous().sort_by_key()`]: VecDeque::make_contiguous
2521
+ /// [`binary_search`]: VecDeque::binary_search
2522
+ /// [`binary_search_by`]: VecDeque::binary_search_by
2523
+ /// [`partition_point`]: VecDeque::partition_point
2524
+ ///
2507
2525
/// # Examples
2508
2526
///
2509
2527
/// Looks up a series of four elements in a slice of pairs sorted by
@@ -2549,9 +2567,9 @@ impl<T> VecDeque<T> {
2549
2567
///
2550
2568
/// See also [`binary_search`], [`binary_search_by`], and [`binary_search_by_key`].
2551
2569
///
2552
- /// [`binary_search`]: slice ::binary_search
2553
- /// [`binary_search_by`]: slice ::binary_search_by
2554
- /// [`binary_search_by_key`]: slice ::binary_search_by_key
2570
+ /// [`binary_search`]: VecDeque ::binary_search
2571
+ /// [`binary_search_by`]: VecDeque ::binary_search_by
2572
+ /// [`binary_search_by_key`]: VecDeque ::binary_search_by_key
2555
2573
///
2556
2574
/// # Examples
2557
2575
///
0 commit comments